Beispiel #1
0
 def get_object(self):
     try:
         return zoeapi.get_execution_details(self.kwargs["instance_id"])
     except Exception:
         redirect = reverse("horizon:sdscontroller:executions:index")
         exceptions.handle(self.request,
                           _('Unable to retrieve details.'),
                           redirect=redirect)
Beispiel #2
0
 def allowed(self, request, execution_instance=None):
     exec_id = execution_instance.id
     execution = zoeapi.get_execution_details(exec_id)
     return execution['status'] == "running"