And remove the call of standalone plugin directly.

Signed-off-by: Wolfgang Link <w.l...@proxmox.com>
---
 PVE/API2/ACME.pm | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm
index b1bb6261..8bd6a924 100644
--- a/PVE/API2/ACME.pm
+++ b/PVE/API2/ACME.pm
@@ -4,7 +4,6 @@ use strict;
 use warnings;
 
 use PVE::ACME;
-use PVE::ACME::StandAlone;
 use PVE::CertHelpers;
 use PVE::Certificate;
 use PVE::Exception qw(raise raise_param_exc);
@@ -58,9 +57,7 @@ my $order_certificate = sub {
            print "... already validated!\n";
        } else {
            print "... pending!\n";
-           print "Setting up webserver\n";
-           my $validation = eval { PVE::ACME::StandAlone->setup($acme, $auth) 
};
-           die "failed setting up webserver - $@\n" if $@;
+           my $validation = PVE::ACME::setup($acme, $auth);
 
            print "Triggering validation\n";
            eval {
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to