Agent: Call IIslandAPIClient.send_log() directly

ControlClient is going away. It's been replaced by IIslandAPIClient.
Now is a good time to remove ControlClient.send_log()
This commit is contained in:
Mike Salvatore 2022-09-28 15:11:42 -04:00
parent a1516535f9
commit fab67d893f
1 changed files with 3 additions and 3 deletions

View File

@ -497,11 +497,11 @@ class InfectionMonkey:
monkey_log_path = get_agent_log_path() monkey_log_path = get_agent_log_path()
if monkey_log_path.is_file(): if monkey_log_path.is_file():
with open(monkey_log_path, "r") as f: with open(monkey_log_path, "r") as f:
log = f.read() log_contents = f.read()
else: else:
log = "" log_contents = ""
self._control_client.send_log(log) self._island_api_client.send_log(self._agent_id, log_contents)
@staticmethod @staticmethod
def _self_delete() -> bool: def _self_delete() -> bool: