]> git.proxmox.com Git - pve-manager.git/commit
NodeConfig/get_acme_conf: make domains always a hash
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 May 2020 08:27:07 +0000 (10:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 May 2020 10:54:30 +0000 (12:54 +0200)
commitb7def515e826655d64d5edb8d0a1187b9af953ad
tree645b24f6c573adc0faa945b6015cf2e3da0cc48a
parentd90b565fbd0c3995ca2860c1fabbad227da2f3ae
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>
PVE/NodeConfig.pm