diff options
-rw-r--r-- | macir.rb | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |