diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-12-04 14:44:03 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2017-12-04 14:45:49 -0500 |
commit | 92bc448624e29fc84087bafcccd0e52b328a53e4 (patch) | |
tree | 93daf65340a091c4ac6851dac9dec40219a25abf /libpod/container.go | |
parent | ae5aac50aaacbdcc20e622e86f40c02136690fe7 (diff) | |
download | podman-92bc448624e29fc84087bafcccd0e52b328a53e4.tar.gz podman-92bc448624e29fc84087bafcccd0e52b328a53e4.tar.bz2 podman-92bc448624e29fc84087bafcccd0e52b328a53e4.zip |
Fix potential race condition in initializing libpod
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container.go b/libpod/container.go index e1b002548..c53184ea3 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -413,7 +413,7 @@ func (c *Container) refresh() error { defer c.lock.Unlock() if !c.valid { - return errors.Wrapf(ErrCtrRemoved, "container %s has been removed from the state", c.ID()) + return errors.Wrapf(ErrCtrRemoved, "container %s is not valid - may have been removed", c.ID()) } // We need to get the container's temporary directory from c/storage |