-
Notifications
You must be signed in to change notification settings - Fork 41
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
undefined method `match' for nil:NilClass (NoMethodError) #202
Comments
My guess is probably correct. |
Fixed as part of #203 |
@albatrossflavour it seems that version 0.16 does not include this change |
This piece of code doesn't seem to be in 0.19 and adding it manually does not fix the error for me (message remains the same). Puppet 7.23, puppetserver 7.9.5. |
Hmmm, odd. Can you share any steps to reproduce it? |
I figured it out. I have packages with no parameters whatso-ever so also inserting a check "and r['parameters']" fixes it (for me). |
Affected Puppet, Ruby, OS, and module versions/distributions
How to reproduce (e.g Puppet code you use)
this is happening when the key
ensure
in the JSON catalog does not exist.My guess is that when the
package
resource is used withoutensure
, the default key "present", is not being added to the catalog. For instance:package { 'my-package': }
will not create a proper entry in the catalogWhat are you seeing
on some servers I am seeing this error:
What behavior did you expect instead
Please check the PR #203 for a possible solution.
We need to ensure that the key exists before attempting to match the digits.
The text was updated successfully, but these errors were encountered: