Merge "Fix wrong exception catch in port_unbind"

This commit is contained in:
Jenkins 2016-11-24 08:27:20 +00:00 committed by Gerrit Code Review
commit 0fd045d743
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ def port_unbind(endpoint_id, neutron_port):
try:
utils.remove_device(devname)
except pyroute2.NetlinkError:
raise exceptions.VethDeleteionFailure(
raise exceptions.VethDeletionFailure(
'Failed to delete the container device.')
return '', None

View File

@ -116,7 +116,7 @@ def port_unbind(endpoint_id, neutron_port):
try:
utils.remove_device(ifname)
except pyroute2.NetlinkError:
raise exceptions.VethDeleteionFailure(
raise exceptions.VethDeletionFailure(
'Deleting the veth pair failed.')
return (stdout, stderr)