Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#11596 from svet-se/fix-type-error…
Browse files Browse the repository at this point in the history
…-in-get-implemented-stigs

Fix TypeError in get_implemented_stigs
  • Loading branch information
Mab879 authored Feb 20, 2024
2 parents ba5a6da + 1187d86 commit e4ed989
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions utils/build_stig_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit e4ed989

Please sign in to comment.