Skip to content

Commit 73284e2

Browse files
committed
Querying master state doesn't require authentication
1 parent 9aca6c5 commit 73284e2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def self.conn_string
136136

137137
def self.db_ismaster
138138
cmd_ismaster = 'db.isMaster().ismaster'
139-
cmd_ismaster = mongoshrc_file + cmd_ismaster if mongoshrc_file
140139
db = 'admin'
141140
res = mongosh_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
142141
res.eql?('true')

0 commit comments

Comments
 (0)