Merge pull request #2466 from dong-liuliu/xliu2/spell-typo

Fix typos in sandbox and persist/fs
This commit is contained in:
Salvador Fuentes 2020-02-18 07:30:18 -06:00 committed by GitHub
commit 1efcd038ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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

View File

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