mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 07:19:06 +00:00
Merge pull request #2466 from dong-liuliu/xliu2/spell-typo
Fix typos in sandbox and persist/fs
This commit is contained in:
commit
1efcd038ee
@ -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)
|
||||
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
|
||||
}
|
||||
defer f.Close()
|
||||
|
@ -1322,7 +1322,7 @@ func (s *Sandbox) StatsContainer(containerID string) (ContainerStats, error) {
|
||||
// Stats returns the stats of a running sandbox
|
||||
func (s *Sandbox) Stats() (SandboxStats, error) {
|
||||
if s.state.CgroupPath == "" {
|
||||
return SandboxStats{}, fmt.Errorf("sandbox cgroup path is emtpy")
|
||||
return SandboxStats{}, fmt.Errorf("sandbox cgroup path is empty")
|
||||
}
|
||||
|
||||
var path string
|
||||
|
Loading…
Reference in New Issue
Block a user