diff --git a/monkey/infection_monkey/master/propagator.py b/monkey/infection_monkey/master/propagator.py index 0b42d345b..33fc826ea 100644 --- a/monkey/infection_monkey/master/propagator.py +++ b/monkey/infection_monkey/master/propagator.py @@ -124,8 +124,8 @@ class Propagator: exploiter_config = propagation_config["exploiters"] self._exploiter.exploit_hosts( - self._hosts_to_exploit, exploiter_config, + self._hosts_to_exploit, self._process_exploit_attempts, network_scan_completed, stop, diff --git a/monkey/tests/unit_tests/infection_monkey/master/test_propagator.py b/monkey/tests/unit_tests/infection_monkey/master/test_propagator.py index de44f40f4..4dffdf7e8 100644 --- a/monkey/tests/unit_tests/infection_monkey/master/test_propagator.py +++ b/monkey/tests/unit_tests/infection_monkey/master/test_propagator.py @@ -139,7 +139,7 @@ def test_scan_result_processing(telemetry_messenger_spy): class MockExploiter: def exploit_hosts( - self, hosts_to_exploit, exploiter_config, results_callback, scan_completed, stop + self, exploiter_config, hosts_to_exploit, results_callback, scan_completed, stop ): hte = [] for _ in range(0, 2):