Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 def get_data(self, request, image_id):
     instance = api.inst_detail(request, image_id)
     return instance
Пример #6
0
 def get_data(self, request, key_id):
     keypair = api.inst_detail(request, key_id)
     return keypairs
Пример #7
0
 def get_data(self, request, sg_id):
     security_group = api.inst_detail(request, sg_id)
     return security_group
Пример #8
0
 def get_data(self, request, sg_id):
     security_group = api.inst_detail(request, sg_id)
     return security_group