Allow libvirt to specify force, rm_cfg
PATCH 1/1 Allow libvirt to specify force, rm_cfg
# HG changeset patch
# User [email protected]
# Date 1205267286 25200
# Node ID 0e070c63a5ce10cc67431b6c239d085676ce2258 # Parent af2f196422b6d9d90aa1b37da7f4bc699cee7dd9 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 <[email protected]>
tools/python/xen/xend/server/SrvDomain.py +3 -1
@@ -186,7 +186,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):