]> git.proxmox.com Git - pve-firewall.git/commit
Check if corosync.conf exists before calling parser
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 22 Jul 2019 13:21:54 +0000 (15:21 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Aug 2019 07:44:43 +0000 (09:44 +0200)
commit602bdfe2fc197b36bd3f1e04233389ff6d6b6aec
treeeb93202f03d49249328044e7e7602d82e64e9a74
parent279e0473b87babbb47a618421b7f74456d50352c
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.

(cherry picked from commit 1473e5f7084409a95458b2d71d59430c6870d372)
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/PVE/Firewall.pm