From d8da62dd6b30505bc700bafcd73f4f990cdab807 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Thu, 25 Aug 2011 11:37:17 -0400 Subject: fixing bug --- nova/virt/xenapi/vmops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index 64c106f47..e90022de3 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -241,7 +241,7 @@ class VMOps(object): # Alter the image before VM start for, e.g. network injection also # alter the image if there's metadata. - if FLAGS.flat_injected or instance['metadata']: + if FLAGS.flat_injected: VMHelper.preconfigure_instance(self._session, instance, first_vdi_ref, network_info) -- cgit From 42f9739a608b5b6219aa9f51bc90c2d072edc33a Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Thu, 25 Aug 2011 11:44:21 -0400 Subject: changing comment --- nova/virt/xenapi/vmops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index e90022de3..c5f105f40 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -239,8 +239,7 @@ class VMOps(object): self._attach_disks(instance, disk_image_type, vm_ref, first_vdi_ref, vdis) - # Alter the image before VM start for, e.g. network injection also - # alter the image if there's metadata. + # Alter the image before VM start for network injection. if FLAGS.flat_injected: VMHelper.preconfigure_instance(self._session, instance, first_vdi_ref, network_info) -- cgit