Fix wrong exception catch in port_unbind

Change-Id: I902c466c09a9b524af745a159136d647e23ca166
Closes-Bug: #1644136
This commit is contained in:
Dongcan Ye 2016-11-23 17:16:50 +08:00
parent eb6458092f
commit 1164fbffc7
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

@ -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)