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

(PDB-1342) Fix trusted facts fallback #1326

Merged

Conversation

mullr
Copy link
Contributor

@mullr mullr commented Mar 26, 2015

When adding trusted facts, a fallback mechanism is used to pull them
from the node object if there aren’t any there already. This code is
broken in puppet 4; it’s unclear whether it happened to work in puppet 3
because there was a global request object available or because this
code was never called. In any case, the change works in both.

@pljenkinsro
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://jenkins.puppetlabs.com/job/platform_puppetdb_intn-sys_pr/933/

end
it 'should return trusted data when falling back to the node' do
# This removes :trusted_information from the global context, triggering our fallback code.
Puppet.rollback_context('initial testing state')
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't pass on Puppet 3.5.1 it would seem ... the function doesn't exist in that rev.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated and tested against 3.7.1 and latest.

When adding trusted facts, a fallback mechanism is used to pull them
from the node object if there aren’t any there already. This code is
broken in puppet 4; it’s unclear whether it happened to work in puppet 3
because there was a global request object available or because this 
code was never called. In any case, the change works in both.
@mullr mullr force-pushed the ticket/stable/pdb-1342-fix-trusted-node-data branch from e41b01e to f7604f0 Compare March 27, 2015 16:51
@pljenkinsro
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://jenkins.puppetlabs.com/job/platform_puppetdb_intn-sys_pr/938/

kbarber added a commit that referenced this pull request Mar 30, 2015
…d-node-data

(PDB-1342) Fix trusted facts fallback
@kbarber kbarber merged commit 7407872 into puppetlabs:stable Mar 30, 2015
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.

None yet

3 participants