From 898138441d392c08fb658ed8654d5b1effa06a31 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 9 Nov 2017 17:07:28 -0500 Subject: Need to provide ID of container being updated Signed-off-by: Matthew Heon --- libpod/sql_state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) } -- cgit v1.2.3-54-g00ecf