Corrected incorrect message when deleting port.
Updated the file /horizon/openstack_dashboard/dashboards/admin/ networks/ports/tables.py so it will give the correct error message when trying to delete a port that is in use.This updated error message will give the same information as when using the command-line. Change-Id: I62c0fb1c5b9b073c0d083bddc45133d502b554be Closes-Bug: #1251314
This commit is contained in:
parent
7ed7b730e8
commit
059b75625c
@ -37,8 +37,8 @@ class DeletePort(tables.DeleteAction):
|
||||
def delete(self, request, obj_id):
|
||||
try:
|
||||
api.neutron.port_delete(request, obj_id)
|
||||
except Exception:
|
||||
msg = _('Failed to delete subnet %s') % obj_id
|
||||
except Exception as e:
|
||||
msg = _('Failed to delete port: %s') % e
|
||||
LOG.info(msg)
|
||||
network_id = self.table.kwargs['network_id']
|
||||
redirect = reverse('horizon:admin:networks:detail',
|
||||
|
Loading…
Reference in New Issue
Block a user