summaryrefslogtreecommitdiff
path: root/libpod/runtime_pod.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-10-02 13:39:33 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-10-02 13:47:53 -0400
commit7e23fb6c5d252c61125388ec3c7e1313b7f6bb85 (patch)
tree0a912785ed3e9b8ddc881e308ec3216872ae6fad /libpod/runtime_pod.go
parent39d7c869ea9291352e836f3c170d9bd801f9c35c (diff)
downloadpodman-7e23fb6c5d252c61125388ec3c7e1313b7f6bb85.tar.gz
podman-7e23fb6c5d252c61125388ec3c7e1313b7f6bb85.tar.bz2
podman-7e23fb6c5d252c61125388ec3c7e1313b7f6bb85.zip
Fix cleanupRuntime to only save if container is valid
We call cleanup() (which calls cleanupRuntime()) as part of removing containers, after the container has already been removed from the database. cleanupRuntime() tries to update and save the state, which obviously fails if the container no longer exists. Make the save() conditional on the container not being in the process of being removed. Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/runtime_pod.go')
0 files changed, 0 insertions, 0 deletions