[pve-devel] [manager 2/6] Pass parameters for use in plugin.
Wolfgang Link
w.link at proxmox.com
Mon Oct 14 13:08:16 CEST 2019
The node config is required to determine the plugin
and possibly to pass plugin specific parameters.
---
PVE/API2/ACME.pm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm
index b1bb6261..2c05db9b 100644
--- a/PVE/API2/ACME.pm
+++ b/PVE/API2/ACME.pm
@@ -47,7 +47,8 @@ __PACKAGE__->register_method ({
}});
my $order_certificate = sub {
- my ($acme, $domains) = @_;
+ my ($acme, $node_config) = @_;
+ my $domains = $node_config->{domains};
print "Placing ACME order\n";
my ($order_url, $order) = $acme->new_order($domains);
print "Order URL: $order_url\n";
@@ -189,7 +190,7 @@ __PACKAGE__->register_method ({
print "Loading ACME account details\n";
$acme->load();
- my ($cert, $key) = $order_certificate->($acme, $acme_node_config->{domains});
+ my ($cert, $key) = $order_certificate->($acme, $acme_node_config);
my $code = sub {
print "Setting pveproxy certificate and key\n";
@@ -265,7 +266,7 @@ __PACKAGE__->register_method ({
print "Loading ACME account details\n";
$acme->load();
- my ($cert, $key) = $order_certificate->($acme, $acme_node_config->{domains});
+ my ($cert, $key) = $order_certificate->($acme, $acme_node_config);
my $code = sub {
print "Setting pveproxy certificate and key\n";
--
2.20.1
More information about the pve-devel
mailing list