From: Thomas Lamprecht Date: Sat, 23 May 2020 22:24:44 +0000 (+0200) Subject: fix #2732: use actual plugin config data X-Git-Url: https://git.proxmox.com/?p=proxmox-acme.git;a=commitdiff_plain;h=1192b595869adcf12eda5dc0cf7db950625a22b6 fix #2732: use actual plugin config data Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/ACME/DNSChallenge.pm b/src/PVE/ACME/DNSChallenge.pm index c18e0fd..402a501 100644 --- a/src/PVE/ACME/DNSChallenge.pm +++ b/src/PVE/ACME/DNSChallenge.pm @@ -361,10 +361,7 @@ sub setup { my $domain = $proxmox_acme_command->($self, $acme, $auth, $data, 'setup'); print "Add TXT record: _acme-challenge.$domain\n"; - # FIXME: probe ourself for propagation of TXT record, while not 100% - # failsafe it's good enough of a heuristic to do away with fixed sleep - # intervalls - original acme.sh employs that heuristic too. - my $delay = $data->{'validation-delay'} // 30; + my $delay = $data->{plugin}->{'validation-delay'} // 30; if ($delay > 0) { print "Sleeping $delay seconds to wait for TXT record propagation\n"; sleep($delay); # don't care for EINTR