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

Fixes undefined method facts_from_node error from 0.18.0 #281

Merged
merged 3 commits into from
Apr 2, 2020

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Apr 2, 2020

Fold in add_platform_field to where it can access facts_from_node

In some cases litmus usage would not make facts_from_node available in the namespace add_platform_field sees. Specifically differences in spec_helper_acceptance would change that.

This change adjusts unit testing to how configure! initialises the namespaces, fixes the unit tests and moves the previously separate HoneycombUtils into InventoryManipulation, where it has the necessary visibility.

Closes #280.

In some cases litmus usage would not make facts_from_node available in the namespace add_platform_field sees. Specifically differences in spec_helper_acceptance would change that.

This change adjusts unit testing to how `configure!` initialises the namespaces, fixes the unit tests and moves the previously separate HoneycombUtils into InventoryManipulation, where it has the necessary visibility.

Closes puppetlabs#280.
@DavidS DavidS added the bugfix label Apr 2, 2020
@DavidS DavidS requested a review from a team as a code owner April 2, 2020 08:29
@DavidS DavidS mentioned this pull request Apr 2, 2020
@DavidS
Copy link
Contributor Author

DavidS commented Apr 2, 2020

Validation of this fix running in puppetlabs/puppetlabs-motd#299

@DavidS DavidS changed the title Fixes undefined method error from 0.18.0 Fixes undefined method facts_from_node error from 0.18.0 Apr 2, 2020
@DavidS DavidS merged commit fd99264 into puppetlabs:master Apr 2, 2020
@DavidS DavidS deleted the fix-undefined-method-2 branch April 2, 2020 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants