From d6b8f62dd6c42fbb32a62f67989317496e1c7e66 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 31 May 2018 15:22:40 -0400 Subject: 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 Closes: #863 Approved by: baude --- libpod/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') 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 -- cgit v1.2.3-54-g00ecf