

def _get_location(self, image_id):
    'Get storage URL.\n\n        Returns the direct url representing the backend storage location,\n        or None if this attribute is not shown by Glance.\n        '
    image_meta = self.call('get', image_id)
    if (not service_utils.is_image_available(self.context, image_meta)):
        raise exc.ImageNotFound(image_id=image_meta)
    return getattr(image_meta, 'direct_url', None)

dataset/ETHPy150Open openstack/ironic/ironic/common/glance_service/v2/image_service.py GlanceImageService._get_location/VarMisuse@49/124 `image_id`->`image_meta`