diff options
author | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2017-01-10 16:12:27 +0100 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2017-06-08 08:50:40 +0000 |
commit | 3cd09088142a0ae48fbc3de562edf7baa61cc174 (patch) | |
tree | 97497de3015b2cb044ef3ea282f32c5e46da3c7b /nova/exception_wrapper.py | |
parent | 6e64cb032e56b279acdbee7ae9a0404e7aea99f2 (diff) | |
download | nova-3cd09088142a0ae48fbc3de562edf7baa61cc174.tar.gz |
Remove **kwargs passing in payload __init__
The **kwargs was used in the payload class ctor to pass the payload
fields initialization up to the ovo base class. This is unnecessary
and confusing.
This patch replaces the **kwargs passing with direct field initialization
to make the payload construction more explicit.
Change-Id: I7770f6550fa40c1d9b0417efa57f58fa9c998d45
Implements: bp versioned-notification-transformation-pike
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/exception_wrapper.py')
-rw-r--r-- | nova/exception_wrapper.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/exception_wrapper.py b/nova/exception_wrapper.py index 7ea70c09c2..9009b80958 100644 --- a/nova/exception_wrapper.py +++ b/nova/exception_wrapper.py @@ -36,8 +36,7 @@ def _emit_exception_notification(notifier, context, ex, function_name, args, @rpc.if_notifications_enabled def _emit_versioned_exception_notification(context, ex, binary): versioned_exception_payload = exception.ExceptionPayload.from_exception(ex) - publisher = base.NotificationPublisher(context=context, host=CONF.host, - binary=binary) + publisher = base.NotificationPublisher(host=CONF.host, binary=binary) event_type = base.EventType( object='compute', action=fields.NotificationAction.EXCEPTION) |