We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58e45c7 + 896f5ed commit 45d9bf4Copy full SHA for 45d9bf4
lib/puppet/provider/mongodb_replset/mongo.rb
@@ -157,7 +157,7 @@ def get_hosts_status(members)
157
raise Puppet::Error, "Can't configure replicaset #{name}, host #{host} is not supposed to be part of a replicaset."
158
end
159
160
- if auth_enabled && status.key?('errmsg') && (status['errmsg'].include?('unauthorized') || status['errmsg'].include?('not authorized'))
+ if auth_enabled && status.key?('errmsg') && (status['errmsg'].include?('unauthorized') || status['errmsg'].include?('not authorized') || status['errmsg'].include?('requires authentication'))
161
Puppet.warning "Host #{host} is available, but you are unauthorized because of authentication is enabled: #{auth_enabled}"
162
alive.push(member)
163
0 commit comments