summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macir.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/macir.rb b/macir.rb
index 5c19aca..8a85cb9 100644
--- a/macir.rb
+++ b/macir.rb
@@ -186,12 +186,13 @@ def wait_for_challenge_propagation(domain, challenge)
end
def acme_request_with_retries(retries: 5, &block)
+ p "Retries: #{retries}"
block.call(self)
rescue Acme::Client::Error::BadNonce
raise unless retries.positive?
p 'Retrying because of invalid nonce.'
- acme_request_with_retries(retries - 1, block)
+ acme_request_with_retries(retries: retries - 1) { block }
end
def wait_for_challenge_validation(challenge, cert_name)