Skip to content

Commit

Permalink
fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Nov 1, 2024
1 parent 6e055e5 commit 02fed3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet/type/proxy_mysql_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
def initialize(*args)
super
return if self[:ensure] != :present

self[:password] = "*#{Digest::SHA1.hexdigest(Digest::SHA1.digest(self[:password])).upcase}" unless self[:password].start_with?('*') || self[:encrypt_password] != :true
end

Expand Down

0 comments on commit 02fed3f

Please sign in to comment.