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>
This commit is contained in:
parent
8e353bf653
commit
6de0d2d1a0
@ -37,8 +37,8 @@ class AggregatePayload(base.NotificationPayloadBase):
|
||||
'metadata': fields.DictOfStringsField(nullable=True),
|
||||
}
|
||||
|
||||
def __init__(self, aggregate, **kwargs):
|
||||
super(AggregatePayload, self).__init__(**kwargs)
|
||||
def __init__(self, aggregate):
|
||||
super(AggregatePayload, self).__init__()
|
||||
self.populate_schema(aggregate=aggregate)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user