From 1187d864013d645ffb47ef8fe33513255778bb55 Mon Sep 17 00:00:00 2001 From: svet-se Date: Fri, 16 Feb 2024 13:18:33 +0200 Subject: [PATCH] Fix TypeError in get_implemented_stigs --- utils/build_stig_control.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utils/build_stig_control.py b/utils/build_stig_control.py index 6788acef4bb..7b3fbcf7b68 100755 --- a/utils/build_stig_control.py +++ b/utils/build_stig_control.py @@ -100,10 +100,7 @@ def get_implemented_stigs(args): if args.reference in rule_obj['references'].keys(): refs = rule_obj['references'][args.reference] - if ',' in refs: - refs = refs.split(',') - else: - refs = [refs] + for ref in refs: if ref in known_rules: known_rules[ref].append(rule['id'])