From 2dcd8256662115e6528c2b784c08c5724c8227e8 Mon Sep 17 00:00:00 2001 From: Andrew Bogott Date: Thu, 26 Apr 2012 13:54:08 -0500 Subject: Pass context to notification drivers when we can. Note that previously several notification drivers created an admin context and embedded it in their messages. Those drivers now use the passed-in context instead if it's available. For blueprint novaplugins. Change-Id: Icb89030256022d0a68db4a147611fd37fe83316a --- nova/compute/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/compute') diff --git a/nova/compute/utils.py b/nova/compute/utils.py index 9cf890487..2415abf7c 100644 --- a/nova/compute/utils.py +++ b/nova/compute/utils.py @@ -239,6 +239,6 @@ def notify_about_instance_usage(context, instance, event_suffix, usage_info = _usage_from_instance( context, instance, network_info=network_info, **extra_usage_info) - notifier_api.notify('compute.%s' % host, + notifier_api.notify(context, 'compute.%s' % host, 'compute.instance.%s' % event_suffix, notifier_api.INFO, usage_info) -- cgit