summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-29 19:49:44 +0000
committerGerrit Code Review <review@openstack.org>2012-02-29 19:49:44 +0000
commit9540a8c2913bb0efc59d34c5f72022dffa9dcb0a (patch)
treedf0d5923c65e143776b39d4f31408659e227617e
parentf38281d60c033b61f30aff2ad05ed4b87d1f6ade (diff)
parent067f0a2d2971ab64ee6fa6f3689fc1158471af18 (diff)
downloadnova-9540a8c2913bb0efc59d34c5f72022dffa9dcb0a.tar.gz
nova-9540a8c2913bb0efc59d34c5f72022dffa9dcb0a.tar.xz
nova-9540a8c2913bb0efc59d34c5f72022dffa9dcb0a.zip
Merge "Initialize progress to 0 for build and resize."
-rw-r--r--nova/compute/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 75b8bcf91..e24a3de5b 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -335,6 +335,7 @@ class API(base.Base):
'architecture': architecture,
'vm_mode': vm_mode,
'root_device_name': root_device_name,
+ 'progress': 0,
'auto_disk_config': auto_disk_config}
LOG.debug(_("Going to run %s instances...") % num_instances)
@@ -1323,6 +1324,7 @@ class API(base.Base):
instance,
vm_state=vm_states.RESIZING,
task_state=task_states.RESIZE_PREP,
+ progress=0,
**kwargs)
request_spec = {