summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSabari Kumar Murugesan <smurugesan@vmware.com>2015-04-06 20:36:48 -0700
committerDoug Hellmann <doug@doughellmann.com>2015-04-15 19:55:34 +0000
commitd82d492c67db546d01addc5fead9708760fb6abd (patch)
tree1cc2b9f5ed32549c5abc466ebeb8b0f1df4cbbc7
parent77d19b97c69d48ef2512fb3d14b0486ed2137b39 (diff)
downloadnova-d82d492c67db546d01addc5fead9708760fb6abd.tar.gz
VMware: Fix attribute error in resize
The class DatastorePath was recently removed from ds_util as it's available in oslo.vmware. One of the reference was missed during the refactor. Change-Id: Idc5825c304a99e83cbf36e93751148d6f995131a Closes-Bug: #1440968 (cherry picked from commit ab4a5a5300179a79f7a67688f0e9f3fc280c0efa)
-rw-r--r--nova/virt/vmwareapi/vmops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/vmwareapi/vmops.py b/nova/virt/vmwareapi/vmops.py
index e3fcc9481d..cf5726d10a 100644
--- a/nova/virt/vmwareapi/vmops.py
+++ b/nova/virt/vmwareapi/vmops.py
@@ -1143,7 +1143,7 @@ class VMwareVMOps(object):
ds_ref = vmdk.device.backing.datastore
datastore = ds_util.get_datastore_by_ref(self._session, ds_ref)
dc_info = self.get_datacenter_ref_and_name(ds_ref)
- folder = ds_util.DatastorePath.parse(vmdk.path).dirname
+ folder = ds_obj.DatastorePath.parse(vmdk.path).dirname
self._create_ephemeral(block_device_info, instance, vm_ref,
dc_info, datastore, folder, vmdk.adapter_type)