forked from p15670423/monkey
Agent: Remove unneeded variable in SSHCredentialCollector
This commit is contained in:
parent
ea9082d412
commit
c18ceff85d
|
@ -23,9 +23,8 @@ class SSHCredentialCollector(ICredentialCollector):
|
||||||
logger.info("Started scanning for SSH credentials")
|
logger.info("Started scanning for SSH credentials")
|
||||||
ssh_info = ssh_handler.get_ssh_info(self._telemetry_messenger, self._event_queue)
|
ssh_info = ssh_handler.get_ssh_info(self._telemetry_messenger, self._event_queue)
|
||||||
logger.info("Finished scanning for SSH credentials")
|
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
|
@staticmethod
|
||||||
def _to_credentials(ssh_info: Iterable[Dict]) -> Sequence[Credentials]:
|
def _to_credentials(ssh_info: Iterable[Dict]) -> Sequence[Credentials]:
|
||||||
|
|
Loading…
Reference in New Issue