Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: fix typo in sandbox
Browse files Browse the repository at this point in the history
There is a typo 'emtpy' instead of 'empty' in a error message

Fixes: #2465

Signed-off-by: Liu Xiaodong <[email protected]>
  • Loading branch information
dong-liuliu committed Feb 18, 2020
1 parent 78bb6c0 commit 0f720e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f720e6

Please sign in to comment.