Skip to content

Commit 2c8f095

Browse files
committed
Don't propose attaching device to its backend
1 parent 7a7d93c commit 2c8f095

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

qui/devices/actionable_widgets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ def get_child_widgets(self, vms, disp_vm_templates) -> Iterable[ActionableWidget
578578
other_vms = [
579579
vm
580580
for vm in vms
581-
if vm not in self.device.attachments and vm not in self.device.assignments
581+
if vm not in self.device.attachments
582+
and vm not in self.device.assignments
583+
and vm.name != self.device.backend_domain.name
582584
]
583585

584586
# all devices have a header

0 commit comments

Comments
 (0)