~ttx/nova/lp724325

« back to all changes in this revision

Viewing changes to nova/api/openstack/servers.py

The kernel_id and the ramdisk_id are optional, yet the OpenStack API was requiring them.  In addition, with the ObjectStore these properties are not under 'properties' (as they are with Glance)

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
            try:
153
153
                return image['properties'][param]
154
154
            except KeyError:
155
 
                raise exception.NotFound(
 
155
                LOG.debug(
156
156
                    _("%(param)s property not found for image %(_image_id)s") %
157
157
                      locals())
 
158
            return None
158
159
 
159
160
        image_id = str(image_id)
160
161
        image = self._image_service.show(req.environ['nova.context'], image_id)