diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-08-08 20:17:48 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-08-08 20:17:48 +0000 |
| commit | 9e2abcca6bd0d60bc06e2dbb1c430c8ade4914a7 (patch) | |
| tree | b204484f2af43715ddd11e77d7d673c9c9f1395a /nova/api | |
| parent | 439afc337fec1064ff8eff58625f54f8450dce47 (diff) | |
| parent | e4ee8b54d0e840050357902b78f7e48013be9096 (diff) | |
| download | nova-9e2abcca6bd0d60bc06e2dbb1c430c8ade4914a7.tar.gz nova-9e2abcca6bd0d60bc06e2dbb1c430c8ade4914a7.tar.xz nova-9e2abcca6bd0d60bc06e2dbb1c430c8ade4914a7.zip | |
Set image progress to 100 if the image is active.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/views/images.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/api/openstack/views/images.py b/nova/api/openstack/views/images.py index 873ce212a..912303d14 100644 --- a/nova/api/openstack/views/images.py +++ b/nova/api/openstack/views/images.py @@ -77,7 +77,9 @@ class ViewBuilder(object): "status": image_obj.get("status"), }) - if image["status"] == "SAVING": + if image["status"].upper() == "ACTIVE": + image["progress"] = 100 + else: image["progress"] = 0 return image |
