Island: Simplify a loop in get_config_exploits()

This commit is contained in:
Mike Salvatore 2022-07-14 07:12:08 -04:00
parent 57b97d09f4
commit d7a2a35c46
1 changed files with 2 additions and 5 deletions

View File

@ -420,12 +420,9 @@ class ReportService:
agent_configuration = cls._agent_configuration_repository.get_configuration()
exploitation_configuration = agent_configuration.propagation.exploitation
enabled_exploiters = (
exploiter
for exploiter in chain(
enabled_exploiters = chain(
exploitation_configuration.brute_force, exploitation_configuration.vulnerability
)
)
return [
ExploiterDescriptorEnum.get_by_class_name(exploiter.name).display_name