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)
 def allowed(self, request, execution_instance=None):
     exec_id = execution_instance.id
     execution = zoeapi.get_execution_details(exec_id)
     return execution['status'] == "running"