summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-04 14:44:03 -0500
committerMatthew Heon <matthew.heon@gmail.com>2017-12-04 14:45:49 -0500
commit92bc448624e29fc84087bafcccd0e52b328a53e4 (patch)
tree93daf65340a091c4ac6851dac9dec40219a25abf /libpod/container.go
parentae5aac50aaacbdcc20e622e86f40c02136690fe7 (diff)
downloadpodman-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.go2
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