Merge "Horizon orchestration pop-up shows redundant error"
This commit is contained in:
commit
c4de9faa26
@ -33,7 +33,7 @@ class ApplyCloudStrategyForm(forms.SelfHandlingForm):
|
||||
except Exception as ex:
|
||||
LOG.exception(ex)
|
||||
redirect = reverse(self.failure_url)
|
||||
msg = _('Strategy apply failed: "%s".') % str(ex)
|
||||
msg = _('Strategy apply failed.')
|
||||
exceptions.handle(request, msg,
|
||||
redirect=redirect)
|
||||
return True
|
||||
@ -272,8 +272,9 @@ class CreateCloudStrategyForm(forms.SelfHandlingForm):
|
||||
if not response:
|
||||
messages.error(request, "Strategy creation failed")
|
||||
except Exception as ex:
|
||||
LOG.exception(ex)
|
||||
redirect = reverse(self.failure_url)
|
||||
msg = _('Strategy creation failed: "%s".') % str(ex)
|
||||
msg = _('Strategy creation failed.')
|
||||
exceptions.handle(request, msg,
|
||||
redirect=redirect)
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user