Skip to content

Commit

Permalink
bug 933620: Error during ComputeManager._poll_bandwidth_usage
Browse files Browse the repository at this point in the history
add missing session to model query.

Change-Id: I3cb8ebcff1fd286ef198f33514d4ce3d884c5921
  • Loading branch information
Armando Migliaccio committed Feb 17, 2012
1 parent 5073c45 commit 57da3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/db/sqlalchemy/api.py
Expand Up @@ -3732,7 +3732,7 @@ def bw_usage_update(context,

with session.begin():
bwusage = model_query(context, models.BandwidthUsage,
read_deleted="yes").\
session=session, read_deleted="yes").\
filter_by(instance_id=instance_id).\
filter_by(start_period=start_period).\
filter_by(mac=mac).\
Expand Down

0 comments on commit 57da3b1

Please sign in to comment.