mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Allow libvirt to specify force, rm_cfg
When doing a 'virsh detach-disk' on a running domain, the disk is not removed from the configuration file. Allow a caller to specify whether or not to change the file. Signed-off-by: Ryan Scott <ryan.scott@sun.com>
This commit is contained in:
1 parent
b9d1950675
commit
83d6140b39
1 file changed
+3
-1
@@ -187,7 +187,9 @@ class SrvDomain(SrvDir):
|
||||
def op_device_destroy(self, _, req):
|
||||
return self.call(self.dom.destroyDevice,
|
||||
[['type', 'str'],
|
||||
['dev', 'str']],
|
||||
['dev', 'str'],
|
||||
['force', 'int'],
|
||||
['rm_cfg', 'int']],
|
||||
req)
|
||||
|
||||
def op_device_configure(self, _, req):
|
||||
|
||||