From 8886ebc8b8311408ba73eb8a7a9697399d170ddb Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 24 Jun 2022 15:33:47 -0400 Subject: [PATCH] Agent: Remove unnecessary local variables --- monkey/infection_monkey/master/automated_master.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/monkey/infection_monkey/master/automated_master.py b/monkey/infection_monkey/master/automated_master.py index c347e8627..f3624d03d 100644 --- a/monkey/infection_monkey/master/automated_master.py +++ b/monkey/infection_monkey/master/automated_master.py @@ -198,10 +198,7 @@ class AutomatedMaster(IMaster): logger.debug(f"No credentials were collected by {collector}") def _run_pba(self, pba: PluginConfiguration): - name = pba.name - options = pba.options - - for pba_data in self._puppet.run_pba(name, options): + for pba_data in self._puppet.run_pba(pba.name, pba.options): self._telemetry_messenger.send_telemetry(PostBreachTelem(pba_data)) def _run_payload(self, payload: Tuple[str, Dict]):