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) Fix aio_agent_version on non AIO node #1938

Merged

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Jun 25, 2020

nil does not have a chomp method.

Fixes:

[2020-06-24 21:47:58.625776 ] ERROR Facter::InternalFactManager - /usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:17:in `read_agent_version'
/usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:13:in `block in post_resolve'
/usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:13:in `fetch'
/usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:13:in `post_resolve'
/usr/home/romain/Projects/facter/lib/resolvers/base_resolver.rb:21:in `block in resolve'
/usr/home/romain/Projects/facter/lib/resolvers/base_resolver.rb:19:in `synchronize'
/usr/home/romain/Projects/facter/lib/resolvers/base_resolver.rb:19:in `resolve'
/usr/home/romain/Projects/facter/lib/facts/solaris/aio_agent_version.rb:9:in `call_the_resolver'
/usr/home/romain/Projects/facter/lib/framework/core/fact/internal/core_fact.rb:12:in `create'
/usr/home/romain/Projects/facter/lib/framework/core/fact/internal/internal_fact_manager.rb:41:in `block (2 levels) in start_threads'

nil does not have a chomp method.

Fixes:
```
[2020-06-24 21:47:58.625776 ] ERROR Facter::InternalFactManager - /usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:17:in `read_agent_version'
/usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:13:in `block in post_resolve'
/usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:13:in `fetch'
/usr/home/romain/Projects/facter/lib/resolvers/aio_agent_version.rb:13:in `post_resolve'
/usr/home/romain/Projects/facter/lib/resolvers/base_resolver.rb:21:in `block in resolve'
/usr/home/romain/Projects/facter/lib/resolvers/base_resolver.rb:19:in `synchronize'
/usr/home/romain/Projects/facter/lib/resolvers/base_resolver.rb:19:in `resolve'
/usr/home/romain/Projects/facter/lib/facts/solaris/aio_agent_version.rb:9:in `call_the_resolver'
/usr/home/romain/Projects/facter/lib/framework/core/fact/internal/core_fact.rb:12:in `create'
/usr/home/romain/Projects/facter/lib/framework/core/fact/internal/internal_fact_manager.rb:41:in `block (2 levels) in start_threads'
```
@smortex smortex requested review from a team June 25, 2020 07:50
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@BogdanIrimie
Copy link
Contributor

@smortex nice finding, please add a test for no VERSION file

@florindragos florindragos added the bug Something isn't working label Jun 25, 2020
@BogdanIrimie BogdanIrimie merged commit e31d938 into puppetlabs:4.x Jun 25, 2020
@BogdanIrimie
Copy link
Contributor

@smortex I have merged this PR even with-ought the test because the issue resolved in it had the potential to affect many users. We have already made a release containing the fix.

@smortex
Copy link
Contributor Author

smortex commented Jun 25, 2020

Morning @IrimieBogdan, I was about to add a test and found 2566649. Thanks!

@smortex smortex deleted the fix-aio_agent_version-on-non-aio branch June 25, 2020 17:37
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