mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
addhardware: don't get duplicated disks
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
4aec369e44
commit
7c437f6a6f
@ -1481,6 +1481,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
disks = (self.vm.get_disk_devices() +
|
||||
self.vm.get_disk_devices(inactive=True))
|
||||
for d in disks:
|
||||
if d.target not in used:
|
||||
used.append(d.target)
|
||||
|
||||
prefer_ctrl = self._set_disk_controller(disk, controller_model, disks)
|
||||
|
Loading…
Reference in New Issue
Block a user