ACME: fix fallback to implicit standalone plugin

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 <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-05-07 10:01:37 +02:00 committed by Thomas Lamprecht
parent 1f2497692a
commit 25fd63631d

View File

@ -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;