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:
|
except Exception as ex:
|
||||||
LOG.exception(ex)
|
LOG.exception(ex)
|
||||||
redirect = reverse(self.failure_url)
|
redirect = reverse(self.failure_url)
|
||||||
msg = _('Strategy apply failed: "%s".') % str(ex)
|
msg = _('Strategy apply failed.')
|
||||||
exceptions.handle(request, msg,
|
exceptions.handle(request, msg,
|
||||||
redirect=redirect)
|
redirect=redirect)
|
||||||
return True
|
return True
|
||||||
|
@ -272,8 +272,9 @@ class CreateCloudStrategyForm(forms.SelfHandlingForm):
|
||||||
if not response:
|
if not response:
|
||||||
messages.error(request, "Strategy creation failed")
|
messages.error(request, "Strategy creation failed")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
LOG.exception(ex)
|
||||||
redirect = reverse(self.failure_url)
|
redirect = reverse(self.failure_url)
|
||||||
msg = _('Strategy creation failed: "%s".') % str(ex)
|
msg = _('Strategy creation failed.')
|
||||||
exceptions.handle(request, msg,
|
exceptions.handle(request, msg,
|
||||||
redirect=redirect)
|
redirect=redirect)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue