コード例 #1
0
ファイル: nova.py プロジェクト: ttrifonov/horizon
 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)"
コード例 #2
0
 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)"