mirror of https://github.com/containers/podman.git
sqlite: fix type rewriting container config
It's `UPDATE $NAME` not `UPDATE TABLE $NAME`. [NO NEW TESTS NEEDED] Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
parent
e87014e444
commit
69ff04f736
|
@ -318,7 +318,7 @@ func (s *SQLiteState) rewriteContainerConfig(ctr *Container, newCfg *ContainerCo
|
|||
}
|
||||
}()
|
||||
|
||||
results, err := tx.Exec("UPDATE TABLE ContainerConfig SET Name=?, JSON=? WHERE ID=?;", newCfg.Name, json, ctr.ID())
|
||||
results, err := tx.Exec("UPDATE ContainerConfig SET Name=?, JSON=? WHERE ID=?;", newCfg.Name, json, ctr.ID())
|
||||
if err != nil {
|
||||
return fmt.Errorf("updating container config table with new configuration for container %s: %w", ctr.ID(), err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue