Update handler for PORT AFTER_CREATE
Updated handler for PORT AFTER_CREATE events to handle_payload_event method. Once we move over to payloads for all callbacks the shims will be removed. Closes-Bug: #1931220 Change-Id: I0adaed888d8c23e0d3a79380db70e8c709324a6d
This commit is contained in:
parent
df94641b43
commit
95656a5893
@ -58,6 +58,8 @@ class _ObjectChangeHandler(object):
|
||||
# TODO(boden): remove shim below once all events use payloads
|
||||
if resource in self._PAYLOAD_RESOURCES:
|
||||
handler = self.handle_payload_event
|
||||
if resource == resources.PORT and event == events.AFTER_CREATE:
|
||||
handler = self.handle_payload_event
|
||||
registry.subscribe(handler, resource, event)
|
||||
|
||||
def wait(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user