summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-09 17:07:28 -0500
committerMatthew Heon <matthew.heon@gmail.com>2017-11-18 12:58:48 -0500
commit898138441d392c08fb658ed8654d5b1effa06a31 (patch)
treeacfefeaca1692021e0181326f103b3e2e7f679a7 /libpod
parentb10fb66c28d64a6ea102ce527fc7688015e975ff (diff)
downloadpodman-898138441d392c08fb658ed8654d5b1effa06a31.tar.gz
podman-898138441d392c08fb658ed8654d5b1effa06a31.tar.bz2
podman-898138441d392c08fb658ed8654d5b1effa06a31.zip
Need to provide ID of container being updated
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/sql_state.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/sql_state.go b/libpod/sql_state.go
index 424eb81fb..034fc03e1 100644
--- a/libpod/sql_state.go
+++ b/libpod/sql_state.go
@@ -418,7 +418,8 @@ func (s *SQLState) SaveContainer(ctr *Container) error {
ctr.state.Mountpoint,
timeToSQL(ctr.state.StartedTime),
timeToSQL(ctr.state.FinishedTime),
- ctr.state.ExitCode)
+ ctr.state.ExitCode,
+ ctr.ID())
if err != nil {
return errors.Wrapf(err, "error updating container %s state in database", ctr.ID())
}