Skip to content

Commit

Permalink
Fix kwargs for NECDBException.
Browse files Browse the repository at this point in the history
Updates the NEC plugin to use the correct kwargs when raising
NECDBException.

Fixes LP Bug #1159925.

Change-Id: I1e96d4ec65c1bc98d90d2eb9867fe39bbd505cdc
  • Loading branch information
dprince committed Mar 25, 2013
1 parent 6f752c0 commit 4721b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantum/plugins/nec/db/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 4721b5a

Please sign in to comment.