From d11c8bfdbc81e70f129f75f93decc5e971747954 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 14 Jul 2022 08:03:27 -0400 Subject: [PATCH] Island: Remove disused config_key in technique_reports --- .../cc/services/attack/technique_reports/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py b/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py index 8a02deb02..a57560a76 100644 --- a/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py +++ b/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py @@ -176,8 +176,8 @@ def get_technique(technique_id): :return: Technique object or None if technique is not found """ attack_config = ATTACK_SCHEMA["properties"] - for config_key, attack_type in list(attack_config.items()): - for type_key, technique in list(attack_type["properties"].items()): + for attack_type in attack_config.values(): + for type_key, technique in attack_type["properties"].items(): if type_key == technique_id: return technique return None