diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-10-02 14:26:19 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2018-10-02 14:26:19 -0400 |
commit | b7c5fa70ab858a32432a653674efcf10531048ff (patch) | |
tree | f1e2ebe8d28ee6d2bbbcee3b99cc06b67100a935 /libpod/container_internal.go | |
parent | 7e23fb6c5d252c61125388ec3c7e1313b7f6bb85 (diff) | |
download | podman-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/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index c2ed67a82..f6c8781e0 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -423,7 +423,7 @@ func (c *Container) isStopped() (bool, error) { if err != nil { return true, err } - return c.state.State == ContainerStateStopped, nil + return (c.state.State == ContainerStateStopped || c.state.State == ContainerStateExited), nil } // save container state to the database |