From 25fd63631dee37d67b4d9327adf203ba3a4c894a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 7 May 2020 10:01:37 +0200 Subject: [PATCH] ACME: fix fallback to implicit standalone plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit we need to parse the config even if it does not exist - it will return the 'standalone' entry that's needed to be backwards compatible with existing setups. Signed-off-by: Fabian Grünbichler --- PVE/API2/ACMEPlugin.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PVE/API2/ACMEPlugin.pm b/PVE/API2/ACMEPlugin.pm index 71f53a35..84553011 100644 --- a/PVE/API2/ACMEPlugin.pm +++ b/PVE/API2/ACMEPlugin.pm @@ -245,9 +245,7 @@ __PACKAGE__->register_method({ }); sub load_config { - my $cfg = {}; - $cfg = cfs_read_file($plugin_config_file) if -e "/etc/pve/$plugin_config_file"; - return $cfg; + return cfs_read_file($plugin_config_file); } 1; -- 2.39.2