mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +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:
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user