Skip to content

Commit

Permalink
Querying master state doesn't require authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpost committed Mar 22, 2024
1 parent cd12678 commit 30a6905
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/puppet/provider/mongodb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def self.conn_string

def self.db_ismaster
cmd_ismaster = 'db.isMaster().ismaster'
cmd_ismaster = mongorc_file + cmd_ismaster if mongorc_file
db = 'admin'
res = mongo_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
res.eql?('true')
Expand Down

0 comments on commit 30a6905

Please sign in to comment.