def get_data(self): try: key_pair = api.inst_detail(self.request, self.kwargs["keypairs_id"]) except Exception: redirect = reverse("horizon:cnext:instances:index") exceptions.handle(self.request, _("Unable to retrieve keypair details."), redirect=redirect) return key_pair
def get_data(self): try: key_p=api.inst_detail(self.request,self.kwargs['security_group_id']) except Exception: redirect = reverse('horizon:cnext:instances:index') exceptions.handle(self.request, _('Unable to retrieve securitygroups details.'), redirect=redirect) return key_p
def get_data(self): try: inst = api.inst_detail(self.request, self.kwargs['instance_id']) except Exception: redirect = reverse('horizon:cnext:instances:index') exceptions.handle(self.request, _('Unable to retrieve instance details.'), redirect=redirect) return inst
def get_data(self): try: key_p = api.inst_detail(self.request, self.kwargs['security_group_id']) except Exception: redirect = reverse('horizon:cnext:instances:index') exceptions.handle(self.request, _('Unable to retrieve securitygroups details.'), redirect=redirect) return key_p
def get_data(self, request, image_id): instance = api.inst_detail(request, image_id) return instance
def get_data(self, request, key_id): keypair = api.inst_detail(request, key_id) return keypairs
def get_data(self, request, sg_id): security_group = api.inst_detail(request, sg_id) return security_group