virt-manager: Future-proof disk 'removable' check box

Currently only QEMU is supported so we only show the check box when
it's used. The future-proofing is that we'll show it for an explicitly
set non-default value, even for hypervisors we don't think support it.
This commit is contained in:
Fred A. Kemp 2013-10-04 03:39:02 +02:00 committed by Cole Robinson
parent c45e1ef6b8
commit c005cc84d6

View File

@ -2810,6 +2810,8 @@ class vmmDetails(vmmGObjectUI):
self.conn.is_test_conn())) self.conn.is_test_conn()))
if removable is None: if removable is None:
removable = False removable = False
else:
can_set_removable = True
if addr == "spapr-vio": if addr == "spapr-vio":
bus = "spapr-vscsi" bus = "spapr-vscsi"