Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#11121 from jan-cerny/ordered_dict
Browse files Browse the repository at this point in the history
Fix OrderedDict definition
  • Loading branch information
Mab879 authored Sep 19, 2023
2 parents 8875c69 + 7aa2bd9 commit 65e2469
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ssg/build_remediations.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,10 @@ def inject_package_facts_task(self, parsed_snippet):
has_ansible_facts_packages_clause = True

if has_ansible_facts_packages_clause and not has_package_facts_task:
facts_task = OrderedDict({'name': 'Gather the package facts',
'package_facts': {'manager': 'auto'}})
facts_task = OrderedDict([
('name', 'Gather the package facts'),
('package_facts', {'manager': 'auto'})
])
parsed_snippet.insert(0, facts_task)

def update_when_from_rule(self, to_update, cpe_platforms):
Expand Down

0 comments on commit 65e2469

Please sign in to comment.