Agent: Remove unneeded variable in SSHCredentialCollector

This commit is contained in:
Ilija Lazoroski 2022-08-16 14:24:26 +02:00
parent ea9082d412
commit c18ceff85d
1 changed files with 1 additions and 2 deletions

View File

@ -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]: