diff options
| author | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-09-01 14:29:43 -0700 |
|---|---|---|
| committer | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-09-01 14:29:43 -0700 |
| commit | d55dedbcceeab883c22eda19879221edb7a9d7e0 (patch) | |
| tree | da76c80ac7704b108ee4f30141ff193aa24a9fd5 /bin/instance-usage-audit | |
| parent | 43a392814150e49769e935f4972c9901612570af (diff) | |
| parent | ce6f55b4bd889d9e873598bb23ed37327d75252e (diff) | |
Resolved conflicts and fixed pep8 errors
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, |
