Merge "Fix wrong exception catch in port_unbind"
This commit is contained in:
commit
0fd045d743
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue