コード例 #1
0
ファイル: tabs.py プロジェクト: 28607895/horizon
 def get_heat_services_data(self):
     try:
         services = heat.service_list(self.tab_group.request)
     except Exception:
         msg = _('Unable to get Orchestration service list.')
         exceptions.check_message(["Connection", "refused"], msg)
         exceptions.handle(self.request, msg)
         services = []
     return services
コード例 #2
0
ファイル: tabs.py プロジェクト: isabella232/horizon-2
 def get_heat_services_data(self):
     try:
         services = heat.service_list(self.tab_group.request)
     except Exception:
         msg = _('Unable to get Orchestration service list.')
         exceptions.check_message(["Connection", "refused"], msg)
         exceptions.handle(self.request, msg)
         services = []
     return services