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: ansible-core-2.16 - only use to_nice_json for output formatting #374

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

richm
Copy link
Collaborator

@richm richm commented Dec 7, 2023

Cause: The code was using to_nice_json to construct a list used for
further processing.

Consequence: The variable was evaluated as a string, not a list
and was causing no files to match.

Fix: Remove the to_nice_json so the variable is evaluated as
a list.

Result: The code works as expected.

Signed-off-by: Rich Megginson rmeggins@redhat.com

Cause: The code was using `to_nice_json` to construct a list used for
further processing.

Consequence: The variable was evaluated as a `string`, not a `list`
and was causing no files to match.

Fix: Remove the `to_nice_json` so the variable is evaluated as
a `list`.

Result: The code works as expected.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@richm
Copy link
Collaborator Author

richm commented Dec 7, 2023

[citest]

@richm richm merged commit d5411ee into linux-system-roles:main Dec 7, 2023
23 checks passed
@richm richm deleted the fixes-for-ansible-core-2.16 branch December 7, 2023 23:44
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.

1 participant