diff options
| author | Andrew Bogott <abogott@wikimedia.org> | 2012-04-26 13:54:08 -0500 |
|---|---|---|
| committer | Andrew Bogott <abogott@wikimedia.org> | 2012-05-02 15:37:32 -0500 |
| commit | 2dcd8256662115e6528c2b784c08c5724c8227e8 (patch) | |
| tree | 79815b17864a7d04eba0b0ba14e7838c7dabebc9 /nova/compute | |
| parent | 1d97b77ea4c31f1fb17bc20cc4c16a3f6edf2cf1 (diff) | |
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
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
