Skip to content

Commit d69facb

Browse files
committed
fixup! Work around authentication requirement before user creation
1 parent 07c0b40 commit d69facb

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet/provider/mongodb_replset

1 file changed

+1
-1
lines changed

lib/puppet/provider/mongodb_replset/mongo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def self.replset_properties
145145
nil
146146
rescue Puppet::ExecutionFailure => e
147147
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)
148+
output = mongo_command('rs.status()', host)
149149
if output['members']
150150
memb = []
151151
output['members'].each do |m|

0 commit comments

Comments
 (0)