diff options
| -rw-r--r-- | nova/virt/xenapi/vm_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py index 64aca60ac..3002fce5a 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -322,8 +322,9 @@ class VMHelper(xenapi.HelperBase): def create_vdi(cls, session, sr_ref, instance, name_description, virtual_size, read_only=False): """Create a VDI record and returns its reference.""" + name_label = instance['name'] vdi_ref = session.call_xenapi("VDI.create", - {'name_label': instance['name'], + {'name_label': name_label, 'name_description': name_description, 'SR': sr_ref, 'virtual_size': str(virtual_size), |
