debuggers.hg
changeset 17258:d0a538659726
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>
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>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue Mar 18 11:31:39 2008 +0000 (2008-03-18) |
parents | ea5ee63548e4 |
children | 4ee7c6a4d193 |
files | tools/python/xen/xend/server/SrvDomain.py |
line diff
1.1 --- a/tools/python/xen/xend/server/SrvDomain.py Tue Mar 18 11:29:18 2008 +0000 1.2 +++ b/tools/python/xen/xend/server/SrvDomain.py Tue Mar 18 11:31:39 2008 +0000 1.3 @@ -187,7 +187,9 @@ class SrvDomain(SrvDir): 1.4 def op_device_destroy(self, _, req): 1.5 return self.call(self.dom.destroyDevice, 1.6 [['type', 'str'], 1.7 - ['dev', 'str']], 1.8 + ['dev', 'str'], 1.9 + ['force', 'int'], 1.10 + ['rm_cfg', 'int']], 1.11 req) 1.12 1.13 def op_device_configure(self, _, req):