summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorRick Harris <rick.harris@rackspace.com>2011-03-08 22:14:25 +0000
committerRick Harris <rick.harris@rackspace.com>2011-03-08 22:14:25 +0000
commitdd2f0019297d01fe5d6b3dae4efc72946191be75 (patch)
tree5e3a756b3b6b5aaacce75cd4aff397031279df17 /nova/api
parentb238805d2ee9c19d3fb9b4dc43fa404630bdfaab (diff)
downloadnova-dd2f0019297d01fe5d6b3dae4efc72946191be75.tar.gz
nova-dd2f0019297d01fe5d6b3dae4efc72946191be75.tar.xz
nova-dd2f0019297d01fe5d6b3dae4efc72946191be75.zip
Use disk_format and container_format instead of image type
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index c2bf42b72..85999764f 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -450,7 +450,7 @@ class Controller(wsgi.Controller):
_("Cannot build from image %(image_id)s, status not active") %
locals())
- if image['type'] != 'machine':
+ if image['disk_format'] != 'ami':
return None, None
try: