Skip to content

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

Merged
oanatmaria merged 2 commits intopuppetlabs:4.xfrom
gimmyxd:maint/fix_yaml_load
Jul 21, 2020
Merged

(maint) handle Time and Symbol in executable facts#1977
oanatmaria merged 2 commits intopuppetlabs:4.xfrom
gimmyxd:maint/fix_yaml_load

Conversation

@gimmyxd
Copy link
Copy Markdown

@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.
@gimmyxd gimmyxd force-pushed the maint/fix_yaml_load branch from 5fc2f9c to e1835ff Compare July 16, 2020 09:20
@florindragos
Copy link
Copy Markdown
Contributor

Jenkins please test this on all

@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

@florindragos
Copy link
Copy Markdown
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