From d7a2a35c46d6db15bf1f96fdd6bd91ffdc27c27c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 14 Jul 2022 07:12:08 -0400 Subject: [PATCH] Island: Simplify a loop in get_config_exploits() --- monkey/monkey_island/cc/services/reporting/report.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py index f57adc247..8e312c723 100644 --- a/monkey/monkey_island/cc/services/reporting/report.py +++ b/monkey/monkey_island/cc/services/reporting/report.py @@ -420,11 +420,8 @@ class ReportService: agent_configuration = cls._agent_configuration_repository.get_configuration() exploitation_configuration = agent_configuration.propagation.exploitation - enabled_exploiters = ( - exploiter - for exploiter in chain( - exploitation_configuration.brute_force, exploitation_configuration.vulnerability - ) + enabled_exploiters = chain( + exploitation_configuration.brute_force, exploitation_configuration.vulnerability ) return [