Fix wrong exception catch in port_unbind
Change-Id: I902c466c09a9b524af745a159136d647e23ca166 Closes-Bug: #1644136
This commit is contained in:
parent
eb6458092f
commit
1164fbffc7
|
@ -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
|
||||
|
|
|
@ -115,7 +115,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