Skip to content

Commit

Permalink
[lxd-import] lxc/storage: Initialise storage pool config map if nil.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing authored and stgraber committed Oct 6, 2023
1 parent 650aac5 commit 40f54fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/incus/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ func (c *cmdStorageSet) Run(cmd *cobra.Command, args []string) error {
}
}
} else {
if writable.Config == nil {
writable.Config = make(map[string]string)
}

// Update the volume config keys.
for k, v := range keys {
writable.Config[k] = v
Expand Down

0 comments on commit 40f54fa

Please sign in to comment.