1
0
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: 

Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
This commit is contained in:
Liu Xiaodong
2020-02-17 23:08:19 -05:00
parent ab260e4706
commit 78bb6c0f66

@@ -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()