[pve-devel] [Patch V2 manager 1/8] Use the plugin architecture.

Wolfgang Link w.link at proxmox.com
Tue Mar 31 12:08:31 CEST 2020


And remove the call of standalone plugin directly.

Signed-off-by: Wolfgang Link <w.link at 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





More information about the pve-devel mailing list