Skip to content

Commit

Permalink
The kernel_id and the ramdisk_id are optional, yet the OpenStack API …
Browse files Browse the repository at this point in the history
…was requiring them. In addition, with the ObjectStore these properties are not under 'properties' (as they are with Glance)
  • Loading branch information
justinsb authored and Tarmac committed Feb 23, 2011
2 parents 70bc1d4 + 3ef3dfc commit 9664c9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nova/api/openstack/servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ def lookup(param):
try:
return image['properties'][param]
except KeyError:
raise exception.NotFound(
LOG.debug(
_("%(param)s property not found for image %(_image_id)s") %
locals())
return None

image_id = str(image_id)
image = self._image_service.show(req.environ['nova.context'], image_id)
Expand Down

0 comments on commit 9664c9d

Please sign in to comment.