]> git.proxmox.com Git - pve-firewall.git/commit
Check if corosync.conf exists before calling parser
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 3 Jul 2019 12:27:33 +0000 (14:27 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 3 Jul 2019 13:41:15 +0000 (15:41 +0200)
commit328d1e87c8134b77c785d70312b40e9e854c5dfc
tree198def37dfb3d1fcd9c9862667a4cad76dbbb470
parent7dfebf2d6d639392be755c1688bdc2a80a1a5167
Check if corosync.conf exists before calling parser

Calling cfs_read_file with no corosync.conf (i.e. on a standalone node)
returns {} instead of undef. The previous patches assumes undef for this
scenario. To avoid confusing checks all over the place, simply leave the
config as undef if no file exists.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/PVE/Firewall.pm