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

Strip null bytes in kmods fact #107

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Strip null bytes in kmods fact #107

merged 1 commit into from
Oct 2, 2023

Conversation

saz
Copy link
Sponsor Contributor

@saz saz commented Sep 1, 2023

Pull Request (PR) description

Puppet won't allow facts containing null bytes. This will remove any null bytes from values within the kmods fact

This Pull Request (PR) fixes the following issues

Fixes #98

Copy link
Member

@kenyon kenyon left a comment

Choose a reason for hiding this comment

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

I tested this branch on my one node that had a null byte in a kmods parameter fact, and it allowed puppet to run (finally). So I'll merge this.

For searchability, the error shown in the puppet run report log the PE console (without this patch) is Failed to apply catalog: Could not render to json: partial character in source, but hit end.

@kenyon kenyon merged commit ca6dd2f into master Oct 2, 2023
4 checks passed
@kenyon kenyon deleted the fix-null-value branch October 2, 2023 18:20
@kenyon kenyon added enhancement New feature or request and removed enhancement New feature or request labels Oct 2, 2023
Enucatl added a commit to Enucatl/puppet-control-repo that referenced this pull request Oct 4, 2023
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.

kmods fact produces null byte in parameters datastructure
5 participants