From c18ceff85dfb1c1e7951021be64cd3451fc03b05 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 16 Aug 2022 14:24:26 +0200 Subject: [PATCH] Agent: Remove unneeded variable in SSHCredentialCollector --- .../ssh_collector/ssh_credential_collector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_credential_collector.py b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_credential_collector.py index c5659e2a8..b54f8d464 100644 --- a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_credential_collector.py +++ b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_credential_collector.py @@ -23,9 +23,8 @@ class SSHCredentialCollector(ICredentialCollector): logger.info("Started scanning for SSH credentials") ssh_info = ssh_handler.get_ssh_info(self._telemetry_messenger, self._event_queue) logger.info("Finished scanning for SSH credentials") - ssh_collector_credentials = SSHCredentialCollector._to_credentials(ssh_info) - return ssh_collector_credentials + return SSHCredentialCollector._to_credentials(ssh_info) @staticmethod def _to_credentials(ssh_info: Iterable[Dict]) -> Sequence[Credentials]: