Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OrderedDict definition #11121

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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