summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-06-25 15:37:50 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-06-25 15:37:50 +0000
commit75546dade88d39469bb3479e80ebd6b4afad36e9 (patch)
treeab27044187148cf22655883cfd4e788edde51b0a
parentfcd2dad6de73e153b756a16d97597df61a4ddbe8 (diff)
Remove unknown shutdown kwarg in call to vmops._destroy
Fixes bug 1017562 Also, _destroy will now intelligently shutdown the VM first, so need to do that in vm_vdi_cleaner.py anymore Change-Id: I8c1e3aa8ecb98ed3c19ab4b8fa072b7fa8e5618f
-rwxr-xr-xtools/xenserver/vm_vdi_cleaner.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/xenserver/vm_vdi_cleaner.py b/tools/xenserver/vm_vdi_cleaner.py
index 30643abd3..43f2ad81e 100755
--- a/tools/xenserver/vm_vdi_cleaner.py
+++ b/tools/xenserver/vm_vdi_cleaner.py
@@ -109,9 +109,7 @@ def find_orphaned_instances(xenapi, verbose=False):
def cleanup_instance(xenapi, instance, vm_ref, vm_rec):
"""Delete orphaned instances."""
- if vm_rec['power_state'] == 'Running':
- call_xenapi(xenapi, 'VM.hard_shutdown', vm_ref)
- xenapi._vmops._destroy(instance, vm_ref, shutdown=False)
+ xenapi._vmops._destroy(instance, vm_ref)
def _get_applicable_vm_recs(xenapi):