mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-03 01:44:29 +00:00
virtcontainers/persist: fix typo in fs
There is a typo 'writting' instead of 'writing' in a logger error. Fixes: #2465 Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
This commit is contained in:
@@ -298,7 +298,7 @@ func (fs *FS) GlobalWrite(relativePath string, data []byte) error {
|
|||||||
|
|
||||||
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, fileMode)
|
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, fileMode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Logger().WithError(err).WithField("file", path).Error("failed to open file for writting")
|
fs.Logger().WithError(err).WithField("file", path).Error("failed to open file for writing")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
Reference in New Issue
Block a user