Remove redundant success messages for LBaaS delete actions
After deleting pool, member or health monitor two success messages are displaying instead of one. Closes-Bug: 1503211 Change-Id: I8221dd2609cfe6bdde6a0e1011d9a38cb4fa4eac
This commit is contained in:
parent
4684be3880
commit
6d51064eff
@ -137,7 +137,6 @@ class DeletePoolLink(policy.PolicyTargetMixin, tables.DeleteAction):
|
||||
def delete(self, request, obj_id):
|
||||
try:
|
||||
api.lbaas.pool_delete(request, obj_id)
|
||||
messages.success(request, _('Deleted pool %s') % obj_id)
|
||||
except Exception as e:
|
||||
exceptions.handle(request,
|
||||
_('Unable to delete pool. %s') % e)
|
||||
@ -167,7 +166,6 @@ class DeleteMonitorLink(policy.PolicyTargetMixin,
|
||||
def delete(self, request, obj_id):
|
||||
try:
|
||||
api.lbaas.pool_health_monitor_delete(request, obj_id)
|
||||
messages.success(request, _('Deleted monitor %s') % obj_id)
|
||||
except Exception as e:
|
||||
exceptions.handle(request,
|
||||
_('Unable to delete monitor. %s') % e)
|
||||
@ -196,7 +194,6 @@ class DeleteMemberLink(policy.PolicyTargetMixin, tables.DeleteAction):
|
||||
def delete(self, request, obj_id):
|
||||
try:
|
||||
api.lbaas.member_delete(request, obj_id)
|
||||
messages.success(request, _('Deleted member %s') % obj_id)
|
||||
except Exception as e:
|
||||
exceptions.handle(request,
|
||||
_('Unable to delete member. %s') % e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user