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 cd12678 commit 30a6905Copy full SHA for 30a6905
lib/puppet/provider/mongodb.rb
@@ -137,7 +137,6 @@ def self.conn_string
137
138
def self.db_ismaster
139
cmd_ismaster = 'db.isMaster().ismaster'
140
- cmd_ismaster = mongorc_file + cmd_ismaster if mongorc_file
141
db = 'admin'
142
res = mongo_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
143
res.eql?('true')
0 commit comments