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 9aca6c5 commit 73284e2Copy full SHA for 73284e2
lib/puppet/provider/mongodb.rb
@@ -136,7 +136,6 @@ def self.conn_string
136
137
def self.db_ismaster
138
cmd_ismaster = 'db.isMaster().ismaster'
139
- cmd_ismaster = mongoshrc_file + cmd_ismaster if mongoshrc_file
140
db = 'admin'
141
res = mongosh_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
142
res.eql?('true')
0 commit comments