Exemplo n.º 1
0
 def get_possible_shares(self, request):
     try:
         shares = manilaclient.share_list(request)
         choices = [(s.id, s.name) for s in shares]
     except Exception:
         exceptions.handle(request, _("Failed to get list of shares"))
         choices = []
     return choices
Exemplo n.º 2
0
 def populate_job_binary_manila_share_choices(self, request):
     try:
         shares = manilaclient.share_list(request)
         choices = [(s.id, s.name) for s in shares]
     except Exception:
         exceptions.handle(request, _("Failed to get list of shares"))
         choices = []
     return choices
Exemplo n.º 3
0
 def get_possible_shares(self, request):
     try:
         shares = manilaclient.share_list(request)
         choices = [(s.id, s.name) for s in shares]
     except Exception:
         exceptions.handle(request, _("Failed to get list of shares"))
         choices = []
     return choices
Exemplo n.º 4
0
 def populate_job_binary_manila_share_choices(self, request):
     try:
         shares = manilaclient.share_list(request)
         choices = [(s.id, s.name) for s in shares]
     except Exception:
         exceptions.handle(request, _("Failed to get list of shares"))
         choices = []
     return choices