Rename variable to avoid parameter reuse

This commit is contained in:
Daniel Goldberg 2019-11-27 13:57:41 +02:00
parent c8e2de6224
commit 9a40bfa211
1 changed files with 3 additions and 3 deletions

View File

@ -26,9 +26,9 @@ class AttackConfig(object):
:return: Technique object or None if technique is not found
"""
attack_config = AttackConfig.get_config()
for key, attack_type in list(attack_config['properties'].items()):
for key, technique in list(attack_type['properties'].items()):
if key == technique_id:
for config_key, attack_type in list(attack_config['properties'].items()):
for type_key, technique in list(attack_type['properties'].items()):
if type_key == technique_id:
return technique
return None