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 e6fa052 commit 5655cebCopy full SHA for 5655ceb
lib/puppet/provider/mongodb.rb
@@ -135,10 +135,6 @@ def self.conn_string
135
"#{ip_real}:#{port_real}"
136
end
137
138
- def conn_string
139
- self.conn_string
140
- end
141
-
142
def self.db_ismaster
143
cmd_ismaster = 'db.isMaster().ismaster'
144
db = 'admin'
lib/puppet/provider/mongodb_replset/mongo.rb
@@ -155,9 +155,9 @@ def get_hosts_status(members)
155
Puppet.debug "Checking replicaset member #{host} ..."
156
begin
157
status = if host.split(':').first == Facter.value(:fqdn)
158
- rs_status(conn_string)
+ self.rs_status(conn_string)
159
else
160
- rs_status(host)
+ self.rs_status(host)
161
162
163
if status.key?('set')
0 commit comments