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 #2217 - initialize Regexp constants here to stop duplicate warnings #420

Closed
wants to merge 1 commit into from

Conversation

domcleal
Copy link
Contributor

No description provided.

@ohadlevy
Copy link
Member

merged - thanks!

@ohadlevy ohadlevy closed this Feb 20, 2013
ekohl pushed a commit to ekohl/foreman that referenced this pull request Mar 24, 2021
Provider `cli` for `foreman_config_entry` can pass nil instead of a
valid provider during prefetch if a config_entry is not found.

This breaks puppet during prefetch:

  Error: Could not prefetch foreman_config_entry provider 'cli': undefined
  method `intern' for nil:NilClass
  /opt/ruby2.0/lib/vendor_ruby/2.0.0/puppet/type.rb:1715:in `provider'
  /opt/ruby2.0/lib/vendor_ruby/2.0.0/puppet/type.rb:1928:in `provider='
  /var/lib/puppet/lib/puppet/provider/foreman_config_entry/cli.rb:59:in
  `block in prefetch'
  /var/lib/puppet/lib/puppet/provider/foreman_config_entry/cli.rb:53:in
  `each'
  /var/lib/puppet/lib/puppet/provider/foreman_config_entry/cli.rb:53:in
  `prefetch'
  /opt/ruby2.0/lib/vendor_ruby/2.0.0/puppet/transaction.rb:307:in
  `prefetch'

This commit, correctly, skips provider assignment for config entries that
don't exist.

Closes theforemanGH-420
This pull request was closed.
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.

2 participants