Island: Fix call to IIslandEventQueue.publish()

This commit is contained in:
Mike Salvatore 2022-09-21 15:41:48 -04:00
parent 71da0a559a
commit 371e495f17
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ class Agents(AbstractResource):
agent_registration_data = AgentRegistrationData(**request.json) agent_registration_data = AgentRegistrationData(**request.json)
logger.debug(f"Agent registered: {agent_registration_data}") logger.debug(f"Agent registered: {agent_registration_data}")
self._island_event_queue( self._island_event_queue.publish(
IslandEventTopic.AGENT_CONNECTED, agent_registration_data=agent_registration_data IslandEventTopic.AGENT_REGISTERED, agent_registration_data=agent_registration_data
) )
return make_response({}, HTTPStatus.NO_CONTENT) return make_response({}, HTTPStatus.NO_CONTENT)