mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-28 19:05:42 +00:00
NodeConfig/get_acme_conf: make domains always a hash
on all call sites, we assume $cfg->{domains} is a hash, but if we do not have any domains configured, that fails with 'Can't use an undefined value as a HASH reference at ...' so always make domains a hash to avoid this Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d90b565fbd
commit
b7def515e8
@ -251,6 +251,7 @@ sub get_acme_conf {
|
||||
die $err;
|
||||
}
|
||||
my $standalone_domains = delete($res->{domains}) // '';
|
||||
$res->{domains} = {};
|
||||
for my $domain (split(";", $standalone_domains)) {
|
||||
$res->{domains}->{$domain}->{plugin} = 'standalone';
|
||||
$res->{domains}->{$domain}->{_configkey} = 'acme';
|
||||
|
Loading…
Reference in New Issue
Block a user