Skip to content

Commit

Permalink
incusd/patches: Fix bad SQL query
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Feb 18, 2024
1 parent d81cb32 commit 662ebb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/incusd/patches.go
Original file line number Diff line number Diff line change
Expand Up @@ -1291,8 +1291,8 @@ func patchLvmForceReuseKey(name string, d *Daemon) error {
// Add the config entry for each node.
for _, nodeID := range nodeIDs {
_, err := tx.Exec(`
INSERT INTO storage_pools_config(storage_pool_id, node_id, 'lvm.vg.force_reuse', value)
VALUES(?, ?, ?, ?)
INSERT INTO storage_pools_config(storage_pool_id, node_id, key, value)
VALUES(?, ?, 'lvm.vg.force_reuse', ?)
`, poolID, nodeID, value)
if err != nil {
return fmt.Errorf("Failed to create new config: %w", err)
Expand Down

0 comments on commit 662ebb0

Please sign in to comment.