diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-05-01 16:18:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-05-01 16:18:13 +0000 |
| commit | e6b1370d823cdcdb5201152010f0bb27e424b2d3 (patch) | |
| tree | 25396d88e20902e4e6f0774d4ce41b4e7ccc4729 /nova | |
| parent | bd17bfbbfeb741affd73d6a7f7a1018cb32db1a0 (diff) | |
| parent | e3515dfe75cd980b7649b059eaa27c4871b6ddfd (diff) | |
| download | nova-e6b1370d823cdcdb5201152010f0bb27e424b2d3.tar.gz nova-e6b1370d823cdcdb5201152010f0bb27e424b2d3.tar.xz nova-e6b1370d823cdcdb5201152010f0bb27e424b2d3.zip | |
Merge "Create name_label local variable for logging message"
Diffstat (limited to 'nova')
| -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), |
