Skip to content

Commit

Permalink
Initialize progress to 0 for build and resize.
Browse files Browse the repository at this point in the history
Fixes bug 942956

Change-Id: I65031bcd61b49bcae9bd886d7a9f070cba5caad0
  • Loading branch information
rconradharris committed Feb 28, 2012
1 parent 315a45a commit 067f0a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova/compute/api.py
Expand Up @@ -335,6 +335,7 @@ def _create_instance(self, context, instance_type,
'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)
Expand Down Expand Up @@ -1320,6 +1321,7 @@ def resize(self, context, instance, flavor_id=None, **kwargs):
instance,
vm_state=vm_states.RESIZING,
task_state=task_states.RESIZE_PREP,
progress=0,
**kwargs)

request_spec = {
Expand Down

0 comments on commit 067f0a2

Please sign in to comment.