From a9e1b99f2f42475b23a696e137c8ecbf4d75b781 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 28 Sep 2022 17:04:11 +0530 Subject: [PATCH] Agent: Add agent_id parameter to IIslandAPIClient.send_log() --- .../infection_monkey/island_api_client/i_island_api_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/island_api_client/i_island_api_client.py b/monkey/infection_monkey/island_api_client/i_island_api_client.py index 3fd83daaa..d14c8deeb 100644 --- a/monkey/infection_monkey/island_api_client/i_island_api_client.py +++ b/monkey/infection_monkey/island_api_client/i_island_api_client.py @@ -30,10 +30,11 @@ class IIslandAPIClient(ABC): """ @abstractmethod - def send_log(self, log_contents: str): + def send_log(self, agent_id: int, log_contents: str): """ Send the contents of the agent's log to the island + :param agent_id: The ID of the agent whose logs are being sent :param log_contents: The contents of the agent's log :raises IslandAPIConnectionError: If the client cannot successfully connect to the island :raises IslandAPIRequestError: If an error occurs while attempting to connect to the