Skip to content

Commit 02716cc

Browse files
committed
Rubocop fix
1 parent abe191d commit 02716cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mongodb_user/mongodb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def password_hash=(_value)
106106
}
107107

108108
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
109+
raise "Failed update User password for user '#{@resource[:username]}'\n#{out}" if out['ok'].zero?
110110
else
111111
Puppet.warning 'User password operations are available only from master host'
112112
end

0 commit comments

Comments
 (0)