use new payload objects for *_INIT callbacks
Part of the work we did while rehoming the callback modules introduced the notion of payload objects [1] to replace the unstructured kwargs used today. When using payloads event sources need to use publish() rather than notify() to trigger the callback(s) and pass along a payload object (if needed). This patch begins to move us onto the payload objects by updating BEFORE_INIT and AFTER_INIT event types to use the payloads. NB: This change needs to be in sync with consumers using the events herein. Once publish() is used with payloads, callback functions must also define the payload kwarg to follow suit. Therefore such consumers need to depend on this patch. NeutronLibImpact [1] https://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html#event-payloads Change-Id: I9194c7857f10392149159071cda8e080e93adc10changes/13/474213/7
parent
779a8d31e7
commit
40866acd02
Loading…
Reference in New Issue