mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
virtinst: Expose disk/target/@removable
This commit is contained in:
parent
d83b2c02fa
commit
bcd47d6471
@ -20,7 +20,7 @@
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/dev/null"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<target dev="hda" bus="usb" removable="on"/>
|
||||
<serial>frob</serial>
|
||||
<driver name="test" type="raw"/>
|
||||
</disk>
|
||||
|
@ -275,6 +275,8 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("driver_name", None, "test")
|
||||
check("driver_type", None, "raw")
|
||||
check("serial", "WD-WMAP9A966149", "frob")
|
||||
check("bus", "ide", "usb")
|
||||
check("removable", None, False, True)
|
||||
|
||||
check = self._make_checker(disk3)
|
||||
check("type", "block", "dir", "file", "block")
|
||||
|
@ -534,6 +534,7 @@ class VirtualDisk(VirtualDevice):
|
||||
|
||||
bus = XMLProperty("./target/@bus")
|
||||
target = XMLProperty("./target/@dev")
|
||||
removable = XMLProperty("./target/@removable", is_onoff=True)
|
||||
|
||||
read_only = XMLProperty("./readonly", is_bool=True)
|
||||
shareable = XMLProperty("./shareable", is_bool=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user