diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-09-06 07:37:03 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-09-06 07:37:03 -0700 |
| commit | 2a8b4b9912feb848f047273cb66721997856f59d (patch) | |
| tree | e65d8f0db5ec7f172440f392e9c0c24d6b688093 /bin/instance-usage-audit | |
| parent | 9bfdf239df25496e5ff13fbe3cf086f4cd1d4df2 (diff) | |
| parent | 78a63bcad5f29c8927151556229271668b0f9e2b (diff) | |
| download | nova-2a8b4b9912feb848f047273cb66721997856f59d.tar.gz nova-2a8b4b9912feb848f047273cb66721997856f59d.tar.xz nova-2a8b4b9912feb848f047273cb66721997856f59d.zip | |
trunk merge
Diffstat (limited to 'bin/instance-usage-audit')
| -rwxr-xr-x | bin/instance-usage-audit | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/instance-usage-audit b/bin/instance-usage-audit index a06c6b1b3..7ce5732e7 100755 --- a/bin/instance-usage-audit +++ b/bin/instance-usage-audit @@ -102,9 +102,8 @@ if __name__ == '__main__': logging.setup() begin, end = time_period(FLAGS.instance_usage_audit_period) print "Creating usages for %s until %s" % (str(begin), str(end)) - instances = db.instance_get_active_by_window(context.get_admin_context(), - begin, - end) + ctxt = context.get_admin_context() + instances = db.instance_get_active_by_window_joined(ctxt, begin, end) print "%s instances" % len(instances) for instance_ref in instances: usage_info = utils.usage_from_instance(instance_ref, |
