Skip to content

Commit ae1d1e9

Browse files
committed
lxd-to-incus: Clear volatile.uuid from instances
Signed-off-by: Stéphane Graber <[email protected]>
1 parent a9cd481 commit ae1d1e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/lxd-to-incus/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ func (c *cmdMigrate) Run(app *cobra.Command, args []string) error {
378378
// Remove volatile.uuid key from storage volumes (not used by Incus).
379379
rewriteStatements = append(rewriteStatements, "DELETE FROM storage_volumes_config WHERE key='volatile.uuid';")
380380
rewriteStatements = append(rewriteStatements, "DELETE FROM storage_volumes_snapshots_config WHERE key='volatile.uuid';")
381+
382+
// Remove volatile.uuid key from instances (not used by Incus).
383+
rewriteStatements = append(rewriteStatements, "DELETE FROM instances_config WHERE key='volatile.uuid';")
384+
rewriteStatements = append(rewriteStatements, "DELETE FROM instances_snapshots_config WHERE key='volatile.uuid';")
381385
}
382386

383387
// Mangle database schema to be compatible.

0 commit comments

Comments
 (0)