summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2011-09-16 18:06:27 +0000
committerRick Harris <rconradharris@gmail.com>2011-09-16 18:06:27 +0000
commit10f7128079942b14e7627fa34b93e2e0ae05058f (patch)
tree33235b129734f7aea78ad3e60b4b66bcc78e7d63 /nova/api
parent80462f3e446964560198e77af6903d84a05cab87 (diff)
Adding migration progress
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/views/servers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/views/servers.py b/nova/api/openstack/views/servers.py
index 6640be810..925668e56 100644
--- a/nova/api/openstack/views/servers.py
+++ b/nova/api/openstack/views/servers.py
@@ -139,7 +139,8 @@ class ViewBuilderV11(ViewBuilder):
response['server']['updated'] = utils.isotime(inst['updated_at'])
status = response['server'].get('status')
- if status in ('ACTIVE', 'BUILD', 'REBUILD'):
+ if status in ('ACTIVE', 'BUILD', 'REBUILD', 'RESIZE',
+ 'VERIFY_RESIZE'):
response['server']['progress'] = inst['progress'] or 0
response['server']['accessIPv4'] = inst.get('access_ip_v4') or ""