Fix kwargs for NECDBException.
Updates the NEC plugin to use the correct kwargs when raising NECDBException. Fixes LP Bug #1159925. Change-Id: I1e96d4ec65c1bc98d90d2eb9867fe39bbd505cdc
This commit is contained in:
parent
6f752c0125
commit
4721b5a81c
@ -113,7 +113,7 @@ def add_ofc_item(session, resource, quantum_id, ofc_id, old_style=False):
|
||||
session.flush()
|
||||
except Exception as exc:
|
||||
LOG.exception(exc)
|
||||
raise nexc.NECDBException
|
||||
raise nexc.NECDBException(reason=exc.message)
|
||||
return item
|
||||
|
||||
|
||||
@ -189,7 +189,7 @@ def add_portinfo(session, id, datapath_id='', port_no=0,
|
||||
session.add(portinfo)
|
||||
except Exception as exc:
|
||||
LOG.exception(exc)
|
||||
raise nexc.NECDBException
|
||||
raise nexc.NECDBException(reason=exc.message)
|
||||
return portinfo
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user