From acfe50638254da608fec0c01f2511b3aad4c9487 Mon Sep 17 00:00:00 2001 From: Belmiro Moreira Date: Wed, 21 Nov 2012 12:58:35 +0100 Subject: [PATCH] Don't update arch twice when create server During the instance creation a dictionary of instance characteristics (base_options) is created in nova.compute.api._create_instance where "architecture" is defined looking into image[properties]. Then "architecture" entry is updated to the same value in nova.compute.api._populate_instance_for_create if defined or it removes the 'Unknown' value for this key. This patch removes the unnecessary "architecture" update. Change-Id: Id76dedef8fc96dcd6fa5b72ace6c50c85e04215b --- nova/compute/api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nova/compute/api.py b/nova/compute/api.py index 48068eca1a6..310fae0a0f6 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -689,7 +689,6 @@ def _populate_instance_for_create(self, base_options, image, instance['launch_index'] = 0 instance['vm_state'] = vm_states.BUILDING instance['task_state'] = task_states.SCHEDULING - instance['architecture'] = image['properties'].get('architecture') instance['info_cache'] = {'network_info': '[]'} # Store image properties so we can use them later