Skip to content

Commit e27e9f0

Browse files
authored
Fix undefined local variable or method `n'
Fix Error: Failed to apply catalog: undefined local variable or method `n' for Puppet::Type::Mongodb_replset::ProviderMongo:Class
1 parent 3b30b11 commit e27e9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def self.mongo_eval(cmd, db = 'admin', retries = 10, host = nil)
140140
rescue => e
141141
retry_count -= 1
142142
if retry_count > 0
143-
Puppet.debug "Request failed: '#{e.message}' Retry: '#{n}'"
143+
Puppet.debug "Request failed: '#{e.message}' Retry: '#{retries - retry_count}'"
144144
sleep retry_sleep
145145
retry
146146
end

0 commit comments

Comments
 (0)