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

(maint) handle Time and Symbol in executable facts #1977

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

gimmyxd
Copy link
Contributor

@gimmyxd gimmyxd commented Jul 16, 2020

Executable facts can produce structured facts if they
produce a YAML output, when parsing the output script,
YAML.safe_load does not know to handle Time and Symbol.

This commit allow YAML to load Time and Symbol from output.

Executable facts can produce structured facts if they
produce a YAML output, when parsing the output script,
YAML.safe_load does not know to handle Time and Symbol.

This commit allow YAML to load Time and Symbol from output.
@gimmyxd gimmyxd requested review from a team July 16, 2020 07:14
Remove `rescue Exception` from parser since this
is just responsible of formating the output.

The extra handling should be done in
Facter::Core::Execution, if needed.
@florindragos
Copy link
Contributor

Jenkins please test this on all

@puppetcla
Copy link

CLA signed by all contributors.

@florindragos
Copy link
Contributor

Jenkins please test this on all

@oanatmaria oanatmaria added the bug Something isn't working label Jul 21, 2020
@oanatmaria oanatmaria merged commit d3b48a2 into puppetlabs:4.x Jul 21, 2020
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.

4 participants