Merge "Fixed issue with length of new name."
This commit is contained in:
commit
c194bff3be
@ -111,7 +111,7 @@ class WizardFormIISConfiguration(forms.Form):
|
||||
super(WizardFormIISConfiguration, self).__init__(*args, **kwargs)
|
||||
|
||||
link = request.__dict__['META']['HTTP_REFERER']
|
||||
environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
|
||||
environment_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
|
||||
|
||||
domains = api.get_active_directories(request, environment_id)
|
||||
|
||||
|
@ -79,7 +79,7 @@ class DeleteService(tables.BatchAction):
|
||||
|
||||
def action(self, request, service_id):
|
||||
link = request.__dict__['META']['HTTP_REFERER']
|
||||
datacenter_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
|
||||
datacenter_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
|
||||
|
||||
try:
|
||||
api.service_delete(request, datacenter_id, service_id)
|
||||
@ -125,7 +125,7 @@ class UpdateServiceRow(tables.Row):
|
||||
def get_data(self, request, service_id):
|
||||
|
||||
link = request.__dict__['META']['HTTP_REFERER']
|
||||
environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
|
||||
environment_id = re.search('tabula/(\S+)', link).group(0)[77:-1]
|
||||
|
||||
service = api.service_get(request, environment_id, service_id)
|
||||
|
||||
|
@ -46,7 +46,7 @@ class Wizard(ModalFormMixin, SessionWizardView, generic.FormView):
|
||||
|
||||
def done(self, form_list, **kwargs):
|
||||
link = self.request.__dict__['META']['HTTP_REFERER']
|
||||
environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
|
||||
environment_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
|
||||
|
||||
url = "/project/tabula/%s/" % environment_id
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user