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 hostfilter and add missing unsafe regex #28

Merged
merged 11 commits into from
Nov 15, 2024

Conversation

przemkalit
Copy link
Contributor

What does this PR do?

This PR is fixing two issues:

  1. The host filter for the smart inventory is not properly exported. When you export a smart inventory, it is wrapped in double quotes, but the filter itself is also exported with internal double quotes, making it impossible to import.

  2. Add missing regex_replace to every item that could have a variable.

How should this be tested?

Manually

Is there a relevant Issue open for this?

N/A

Other Relevant info, PRs, etc

N/A

@przemkalit
Copy link
Contributor Author

I've added missing sort keys for notification that I clearly overlooked.

Copy link
Contributor

@ivarmu ivarmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review the annotations please.

Copy link
Contributor

@ivarmu ivarmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two changes for consistency.

roles/filetree_create/templates/controller_groups.j2 Outdated Show resolved Hide resolved
@przemkalit
Copy link
Contributor Author

I've added one overlooked sort_keys.

Copy link
Contributor

@ivarmu ivarmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ivarmu ivarmu merged commit 0a8f2be into redhat-cop:devel Nov 15, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants