-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
proxy_mysql_user + ensure absent #161
Comments
Could you run with |
That fragment is all I saved before my fix. |
We have the same issue when trying to enable purge. The issue can also be triggered with
I was able to temporary fix it by replacing the following line in - self[:password] = "*#{Digest::SHA1.hexdigest(Digest::SHA1.digest(self[:password])).upcase}" unless self[:password].start_with?('*') || self[:encrypt_password] != :true
+ self[:password] = "*#{Digest::SHA1.hexdigest(Digest::SHA1.digest(self[:password])).upcase}" unless self[:password].nil? || self[:password].start_with?('*') || self[:encrypt_password] != :true |
Looks like we have a similar problem with
|
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I changed a user definition to 'ensure: absent' and started getting errors.
What are you seeing
Line 16 of
proxy_mysql_user.rb
emitted aError: Failed to apply catalog: undefined method
start_with?' for nil:NilClass` error.What behaviour did you expect instead
Output log
Any additional information you'd like to impart
I created a bogus password for the deleted user, and then it seemed to work fine.
The text was updated successfully, but these errors were encountered: