summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2012-06-27 22:15:59 +0000
committerRick Harris <rconradharris@gmail.com>2012-06-27 22:16:40 +0000
commita590d086ff5e6fdb0fbe88dd27a9bbe619e4fa85 (patch)
tree591025869ef30f2f6f7575923ab3ba7b6ad1bb29
parent8f1ecc8e9431a2fcbe4f18355d6bd78de863de89 (diff)
Swap VDI now uses correct name label.
Fixes bug 1018596 Change-Id: I788a762e3d3362c04c7d6986808d13f77d9c5a5e
-rw-r--r--nova/virt/xenapi/vm_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index 64a479fe1..24ecaaeb0 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -322,7 +322,7 @@ def create_vdi(session, sr_ref, info, disk_type, virtual_size,
# hence information about instance may or may not be present
otherconf = {}
if not isinstance(info, basestring):
- name_label = info['display_name']
+ name_label = info['name']
otherconf = {'nova_instance_uuid': info['uuid'],
'nova_disk_type': disk_type}
else: