Skip to content

Commit 30a6905

Browse files
committed
Querying master state doesn't require authentication
1 parent cd12678 commit 30a6905

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
@@ -137,7 +137,6 @@ def self.conn_string
137137

138138
def self.db_ismaster
139139
cmd_ismaster = 'db.isMaster().ismaster'
140-
cmd_ismaster = mongorc_file + cmd_ismaster if mongorc_file
141140
db = 'admin'
142141
res = mongo_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
143142
res.eql?('true')

0 commit comments

Comments
 (0)