From: Thomas Lamprecht Date: Sun, 13 Jan 2019 12:06:05 +0000 (+0100) Subject: fence cfg parser: check command explicit, mark fence_all as todo X-Git-Url: https://git.proxmox.com/?p=pve-ha-manager.git;a=commitdiff_plain;h=89d5a77854d3b96b3a671e7008da52b32866328c fence cfg parser: check command explicit, mark fence_all as todo Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/HA/FenceConfig.pm b/src/PVE/HA/FenceConfig.pm index f8b5f19..e1b1b97 100644 --- a/src/PVE/HA/FenceConfig.pm +++ b/src/PVE/HA/FenceConfig.pm @@ -47,7 +47,7 @@ sub parse_config { $config->{$dev_name} = $dev; - } else { # connect nodes to devices + } elsif ($command eq 'connect') { # connect nodes to devices die "device '$dev_name' must be declared before you can connect to it\n" if !$config->{$dev_name}; @@ -66,6 +66,9 @@ sub parse_config { $sdev->{node_args}->{$node} = $arg_array; $config->{$dev_name}->{sub_devs}->{$dev_number} = $sdev; + # } elsif ($command eq 'fence_all') { # FIXME: TODO + } else { + die "command '$command' not implemented!"; } };