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 6519f5b commit 98fa9f5Copy full SHA for 98fa9f5
lib/puppet/provider/mongodb.rb
@@ -143,7 +143,7 @@ def self.db_ismaster
143
begin
144
res = mongosh_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
145
rescue StandardError
146
- res = mongosh_cmd(db, conn_string, 'db.isMaster().ismaster').to_s.chomp if mongorc_file && res =~ %r{Authentication failed}
+ res = mongosh_cmd(db, conn_string, 'db.isMaster().ismaster').to_s.chomp if mongoshrc_file && res =~ %r{Authentication failed}
147
end
148
149
res.eql?('true')
0 commit comments