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:
Liu Xiaodong 2020-02-17 23:08:19 -05:00
parent ab260e4706
commit 78bb6c0f66

View File

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