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

report processor: load utils via absolute path #180

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

bastelfreak
Copy link
Collaborator

Fixes
#179

This fix is based on a slack conversation with Josh Cooper:

Extensions like termini need to use require_relative to load helper
code, because when running in a server context the environment specific
directory is not added to the ruby LOAD_PATH.Or resolve the absolute
path at runtime like
https://github.com/puppetlabs/puppetlabs-splunk_hec/blob/6f2cd7beaddba20015a5d3833dacd79705b2d877/lib/puppet/indirector/facts/splunk_hec.rb#L3

@bastelfreak bastelfreak added the bug label May 4, 2022
@bastelfreak bastelfreak force-pushed the require branch 2 times, most recently from deb204a to 7b033c1 Compare May 4, 2022 15:42
@bastelfreak bastelfreak marked this pull request as ready for review May 4, 2022 15:49
@bastelfreak bastelfreak requested a review from a team as a code owner May 4, 2022 15:49
Fixes
puppetlabs#179

This fix is based on a slack conversation with Josh Cooper:
> Extensions like termini need to use require_relative to load helper
code, because when running in a server context the environment specific
directory is not added to the ruby LOAD_PATH.Or resolve the absolute
path at runtime like
https://github.com/puppetlabs/puppetlabs-splunk_hec/blob/6f2cd7beaddba20015a5d3833dacd79705b2d877/lib/puppet/indirector/facts/splunk_hec.rb#L3
@chelnak
Copy link
Contributor

chelnak commented Jul 18, 2022

Spec failures are not related to the work in this PR - Happy to merge.

Thanks for your contribution @bastelfreak

@chelnak chelnak merged commit 2ba1ccb into puppetlabs:main Jul 18, 2022
@bastelfreak
Copy link
Collaborator Author

@chelnak thanks for merging. Can you also prep a new release?

@chelnak
Copy link
Contributor

chelnak commented Jul 18, 2022

Yeah I will do shortly.

I would prefer it if the spec tests were green before I cut a new release. I'm going to look at them now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants