We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe191d commit 02716ccCopy full SHA for 02716cc
lib/puppet/provider/mongodb_user/mongodb.rb
@@ -106,7 +106,7 @@ def password_hash=(_value)
106
}
107
108
out = JSON.parse(mongo_eval("db.runCommand(#{command.to_json})", @resource[:database]))
109
- raise "Failed update User password for user '#{@resource[:username]}'\n#{out}" if out['ok'] == 0
+ raise "Failed update User password for user '#{@resource[:username]}'\n#{out}" if out['ok'].zero?
110
else
111
Puppet.warning 'User password operations are available only from master host'
112
end
0 commit comments