Skip to content

Commit

Permalink
lxd/storage/backend_lxd: Remove redundant FillVolumeConfig
Browse files Browse the repository at this point in the history
Now volume config filling is performed in `GetNewVolume`

Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
  • Loading branch information
hamistao committed Feb 5, 2025
1 parent 295fd99 commit 697e61f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lxd/storage/backend_lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,6 @@ func (b *lxdBackend) CreateInstanceFromConversion(inst instance.Instance, conn i

// Ensure storage volume settings are honored when doing conversion.
vol.SetHasSource(false)
b.driver.FillVolumeConfig(vol)

// Check if the volume exists in database
dbVol, err := VolumeDBGet(b, inst.Project().Name, inst.Name(), volType)
Expand Down

0 comments on commit 697e61f

Please sign in to comment.