diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-05-31 15:22:40 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-31 19:28:00 +0000 |
commit | d6b8f62dd6c42fbb32a62f67989317496e1c7e66 (patch) | |
tree | 7f0ace918dcd20a2d65f923c093f121cc0a1f9a3 | |
parent | 4dfe0d60f3593360b9d43d8dd38981e971c9b642 (diff) | |
download | podman-d6b8f62dd6c42fbb32a62f67989317496e1c7e66.tar.gz podman-d6b8f62dd6c42fbb32a62f67989317496e1c7e66.tar.bz2 podman-d6b8f62dd6c42fbb32a62f67989317496e1c7e66.zip |
Catch does not exist error
There was a new line at the end of does not exist
which was causing this to fail.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #863
Approved by: baude
-rw-r--r-- | libpod/oci.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index 88e9c4cf4..b5b5fd81e 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -423,7 +423,7 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error { out, err := exec.Command(r.path, "state", ctr.ID()).CombinedOutput() if err != nil { - if strings.HasSuffix(string(out), "does not exist") { + if strings.Contains(string(out), "does not exist") { ctr.removeConmonFiles() ctr.state.State = ContainerStateConfigured return nil |