summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-10-02 14:26:19 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-10-02 14:26:19 -0400
commitb7c5fa70ab858a32432a653674efcf10531048ff (patch)
treef1e2ebe8d28ee6d2bbbcee3b99cc06b67100a935 /libpod/oci.go
parent7e23fb6c5d252c61125388ec3c7e1313b7f6bb85 (diff)
downloadpodman-b7c5fa70ab858a32432a653674efcf10531048ff.tar.gz
podman-b7c5fa70ab858a32432a653674efcf10531048ff.tar.bz2
podman-b7c5fa70ab858a32432a653674efcf10531048ff.zip
Fix Wait() to allow Exited state as well as Stopped
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 3838394cb..61ae4b46e 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -457,7 +457,7 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error {
if err != nil {
if strings.Contains(string(out), "does not exist") {
ctr.removeConmonFiles()
- ctr.state.State = ContainerStateConfigured
+ ctr.state.State = ContainerStateExited
return nil
}
return errors.Wrapf(err, "error getting container %s state. stderr/out: %s", ctr.ID(), out)