Merge "Update handler for PORT AFTER_CREATE"

This commit is contained in:
Zuul 2021-06-08 22:05:15 +00:00 committed by Gerrit Code Review
commit 1b549eaf08

View File

@ -58,6 +58,8 @@ class _ObjectChangeHandler(object):
# TODO(boden): remove shim below once all events use payloads # TODO(boden): remove shim below once all events use payloads
if resource in self._PAYLOAD_RESOURCES: if resource in self._PAYLOAD_RESOURCES:
handler = self.handle_payload_event handler = self.handle_payload_event
if resource == resources.PORT and event == events.AFTER_CREATE:
handler = self.handle_payload_event
registry.subscribe(handler, resource, event) registry.subscribe(handler, resource, event)
def wait(self): def wait(self):