Skip to content

Fix YAML multiline config for package names #358

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

Merged
merged 3 commits into from
Apr 2, 2025

Conversation

widhalmt
Copy link
Member

  • Use '>-' instead of '>' for YAML multline when creating package names.

Currently I can't reproduce the error that is shown in the issue. Since it's a simple fix I provided a PR anyway but we need to test this more before we merge it.

The extra newline at the end of the string can cause JSON parsing errors as reported by @cbeaujoin-stellar .

This change will strip the newline character after the name

fixes #357

@widhalmt widhalmt added the bug Something isn't working label Jan 22, 2025
@widhalmt widhalmt self-assigned this Jan 22, 2025
@widhalmt widhalmt marked this pull request as draft January 22, 2025 16:06
@widhalmt
Copy link
Member Author

needs #360 to be merged before for checks to succeed.

* Use '>-' instead of '>' for YAML multline when creating package names.

The extra newline at the end of the string can cause JSON parsing errors as reported by @cbeaujoin-stellar .

This change will strip the newline character after the name

fixes #357
@tbauriedel tbauriedel force-pushed the fix/yaml-multiline-packagename-357 branch from b41a269 to 0d99a03 Compare January 31, 2025 15:43
@tbauriedel
Copy link
Member

@widhalmt is this still a draft or ready for review?

@widhalmt
Copy link
Member Author

widhalmt commented Feb 3, 2025

@tbauriedel I wanted to wait for the checks to run through. My problem with this PR is that it might solve a problem that was reported by a user but I can't reproduce the problem. So - when checks run through I guess we can merge it because as far as I see it does no harm and is indeed the "correct" way to handle this.

@tbauriedel
Copy link
Member

@widhalmt Maybe we should add more to the Issue Template.
Information about the OS where the ansible is running, python, ansible version, etc. could help us.

@tbauriedel
Copy link
Member

If you mark the PR 'ready' I can give you the approval.

@widhalmt widhalmt marked this pull request as ready for review April 1, 2025 15:23
@widhalmt widhalmt enabled auto-merge April 1, 2025 15:23
@tbauriedel tbauriedel self-requested a review April 2, 2025 12:39
@widhalmt widhalmt added this pull request to the merge queue Apr 2, 2025
Merged via the queue into main with commit a0f47b9 Apr 2, 2025
10 checks passed
@widhalmt widhalmt deleted the fix/yaml-multiline-packagename-357 branch April 2, 2025 12:53
ivareri pushed a commit to ivareri/ansible-collection-elasticstack that referenced this pull request Jun 17, 2025
* Use '>-' instead of '>' for YAML multline when creating package names.

**Currently I can't reproduce the error that is shown in the issue.
Since it's a simple fix I provided a PR anyway but we need to test this
more before we merge it.**

The extra newline at the end of the string can cause JSON parsing errors
as reported by @cbeaujoin-stellar .

This change will strip the newline character after the name

fixes NETWAYS#357
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] beats_metricbeat_package newline character issue
2 participants