From b24b8439c5a7c3a163ccd96a29626326fef5bd08 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 13 Oct 2021 18:08:06 +0530 Subject: [PATCH] island: Change 'tab' to 'category' in reverse schema generation --- .../config_schema_per_attack_technique.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py b/monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py index 9003e25a1..e73a1be75 100644 --- a/monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py +++ b/monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py @@ -37,14 +37,14 @@ def _crawl_config_schema_properties_for_reverse_schema(schema: Dict, reverse_sch properties = schema["properties"] for prop in properties: property_type = properties[prop]["title"] - for tab_name in properties[prop]["properties"]: - tab = properties[prop]["properties"][tab_name] - for config_option_name in tab["properties"]: - config_option = tab["properties"][config_option_name] + for category_name in properties[prop]["properties"]: + category = properties[prop]["properties"][category_name] + for config_option_name in category["properties"]: + config_option = category["properties"][config_option_name] for attack_technique in config_option.get("related_attack_techniques", []): # No config values could be a reason that related attack techniques are left # unscanned. See https://github.com/guardicore/monkey/issues/1518 for more. - config_field = f"{config_option['title']} ({tab['title']})" + config_field = f"{config_option['title']} ({category['title']})" _add_config_field_to_reverse_schema( property_type, config_field, attack_technique, reverse_schema )