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 07c0b40 commit d69facbCopy full SHA for d69facb
lib/puppet/provider/mongodb_replset/mongo.rb
@@ -145,7 +145,7 @@ def self.replset_properties
145
nil
146
rescue Puppet::ExecutionFailure => e
147
if e.message =~ %r{command replSetGetConfig requires authentication} || e.message =~ %r{not authorized on admin to execute command}
148
- output = mongo_command('rs.status()', conn_string)
+ output = mongo_command('rs.status()', host)
149
if output['members']
150
memb = []
151
output['members'].each do |m|
0 commit comments