From d55823d8d444cb680c8f3984cb522e95e9f6bd9a Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Tue, 24 Apr 2012 17:03:53 +0000 Subject: [PATCH] Typo fix in bin/instance-usage-audit. The notify method now requires a context, which in this case should be `admin_context` not `context`. Change-Id: I53275d0e1c9a898a7c0d9685382bb52ffb2efa2c --- bin/instance-usage-audit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/instance-usage-audit b/bin/instance-usage-audit index 01473e36d4bb..41b65df8c4df 100755 --- a/bin/instance-usage-audit +++ b/bin/instance-usage-audit @@ -72,4 +72,4 @@ if __name__ == '__main__': end) print "%s instances" % len(instances) for instance_ref in instances: - nova.compute.utils.notify_usage_exists(context, instance_ref) + nova.compute.utils.notify_usage_exists(admin_context, instance_ref)