summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenuka Apte <renuka.apte@citrix.com>2012-04-25 15:55:14 -0700
committerRenuka Apte <renuka.apte@citrix.com>2012-04-25 15:55:55 -0700
commitcaa1b282c701d5e9b9e02ffdb07d432d9b35ed13 (patch)
treef97f48e452fd1778cee397a13fd6c8a6980d42b2
parent1335352df30c3802df8d430e30e7bb7564d01132 (diff)
downloadnova-caa1b282c701d5e9b9e02ffdb07d432d9b35ed13.tar.gz
nova-caa1b282c701d5e9b9e02ffdb07d432d9b35ed13.tar.xz
nova-caa1b282c701d5e9b9e02ffdb07d432d9b35ed13.zip
Xen: Pass session to destroy_vdi
Change-Id: I34c59ff536abfdff9221cdb3d9ecc45d1e7a1a90
-rw-r--r--nova/virt/xenapi/volumeops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/volumeops.py b/nova/virt/xenapi/volumeops.py
index e898b1d37..f4a7ee24a 100644
--- a/nova/virt/xenapi/volumeops.py
+++ b/nova/virt/xenapi/volumeops.py
@@ -60,7 +60,7 @@ class VolumeOps(object):
if vdi_ref is None:
raise exception.Error(_('Could not find VDI ref'))
- vm_utils.VMHelper.destroy_vdi(vdi_ref)
+ vm_utils.VMHelper.destroy_vdi(self._session, vdi_ref)
def create_sr(self, label, params):
LOG.debug(_("Creating SR %s") % label)