diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-03-02 10:19:34 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-02 16:34:20 +0000 |
commit | 3639859622bf1b42c90088295b27efc0882087f6 (patch) | |
tree | 54ebd5991eabaaf217481e7c6f9a4cf1de02b065 /libpod/oci.go | |
parent | 0c4a276a04e8d9344571aa30dcab966f7096dcdc (diff) | |
download | podman-3639859622bf1b42c90088295b27efc0882087f6.tar.gz podman-3639859622bf1b42c90088295b27efc0882087f6.tar.bz2 podman-3639859622bf1b42c90088295b27efc0882087f6.zip |
Instead of erroring on exit file not being found, warn
Erroring can cause us to get into an state where a container
which has no exit file cannot be shown in PS, cannot be removed,
etc.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #438
Approved by: rhatdan
Diffstat (limited to 'libpod/oci.go')
-rw-r--r-- | libpod/oci.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index 4f49a81e4..b808d878e 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -394,7 +394,8 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error { if err != nil { ctr.state.ExitCode = -1 ctr.state.FinishedTime = time.Now() - return errors.Wrapf(err, "no exit file for container %s found", ctr.ID()) + logrus.Errorf("No exit file for container %s found: %v", ctr.ID()) + return nil } ctr.state.FinishedTime = getFinishedTime(fi) |