def image_name(self): from glance.common import exception as glance_exceptions from horizon.api import glance try: image = glance.image_get_meta(self.request, self.image['id']) return image.name except glance_exceptions.NotFound: return "(not found)"