247
247
msg = _("Server name is an empty string")
248
248
raise exc.HTTPBadRequest(explanation=msg)
250
def _get_kernel_ramdisk_from_image(self, req, image_service, image_id):
251
251
"""Fetch an image from the ImageService, then if present, return the
252
252
associated kernel and ramdisk image IDs.
254
254
context = req.environ['nova.context']
256
256
# NOTE(sirp): extracted to a separate method to aid unit-testing, the
257
257
# new method doesn't need a request obj or an ImageService stub
258
258
kernel_id, ramdisk_id = self._do_get_kernel_ramdisk_from_image(