Implements updating complete bw usage data

the DB query is not filtering by the mac address.
Hence, only one of them was being updated and
with mismatched bw usage info.

fixes bug 1021961

Change-Id: I792493a6e0817d62bbf6955df9cd5bc0e4af9dbb
This commit is contained in:
Nikhil Komawar 2012-07-06 18:22:56 -04:00
parent 44dfeeac8b
commit 4f4da15f3f

View File

@ -4371,6 +4371,7 @@ def bw_usage_update(context,
session=session, read_deleted="yes").\
filter_by(start_period=start_period).\
filter_by(uuid=uuid).\
filter_by(mac=mac).\
first()
if not bwusage: