diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-04-14 17:34:09 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-04-14 17:34:09 -0400 |
| commit | 4b0785632ba626d34a8a9fae5e0a5c742660e2dc (patch) | |
| tree | ee1997a88cbf903d98141a385c64700fc2057616 /nova/api | |
| parent | 9761e7690ab8f13a76c761ba6055372a0d29eaff (diff) | |
initial roundup of all 'exception.Invalid' cases
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 43e0c7963..2332b1af7 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -561,9 +561,7 @@ class Controller(common.OpenstackController): """ image_id = image_meta['id'] if image_meta['status'] != 'active': - raise exception.Invalid( - _("Cannot build from image %(image_id)s, status not active") % - locals()) + raise exception.InstanceNotRunning(image_id=image_id) if image_meta.get('container_format') != 'ami': return None, None |
