Ejemplo n.º 1
0
 def action(self, request, environment_id):
     try:
         api.environment_deploy(request, environment_id)
     except:
         msg = _('Unable to deploy. Try again later')
         redirect = reverse('horizon:project:murano:index')
         exceptions.handle(request, msg, redirect=redirect)
Ejemplo n.º 2
0
 def action(self, request, environment_id):
     try:
         api.environment_deploy(request, environment_id)
     except:
         msg = _('Unable to deploy. Try again later')
         redirect = reverse('horizon:project:murano:index')
         exceptions.handle(request, msg, redirect=redirect)
Ejemplo n.º 3
0
 def single(self, data_table, request, service_id):
     environment_id = data_table.kwargs['environment_id']
     try:
         api.environment_deploy(request, environment_id)
         messages.success(request, _('Deploy started'))
     except:
         msg = _('Unable to deploy. Try again later')
         exceptions.handle(request, msg,
                           redirect=reverse('horizon:project:murano:index'))
     return shortcuts.redirect(reverse('horizon:project:murano:services',
                                       args=(environment_id,)))
Ejemplo n.º 4
0
 def single(self, data_table, request, service_id):
     environment_id = data_table.kwargs['environment_id']
     try:
         api.environment_deploy(request, environment_id)
         messages.success(request, _('Deploy started'))
     except:
         msg = _('Unable to deploy. Try again later')
         exceptions.handle(request,
                           msg,
                           redirect=reverse('horizon:project:murano:index'))
     return shortcuts.redirect(
         reverse('horizon:project:murano:services',
                 args=(environment_id, )))