]> git.proxmox.com Git - proxmox-acme.git/commitdiff
fix #2732: use actual plugin config data
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 23 May 2020 22:24:44 +0000 (00:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 23 May 2020 22:24:44 +0000 (00:24 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/ACME/DNSChallenge.pm

index c18e0fd0a60cdb043c6c15b8d257eb7c8abf9891..402a501dc2a37fda06a13b89786633e5b60d65fb 100644 (file)
@@ -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