]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
fence cfg parser: check command explicit, mark fence_all as todo
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 13 Jan 2019 12:06:05 +0000 (13:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 13 Jan 2019 12:07:00 +0000 (13:07 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/FenceConfig.pm

index f8b5f19417976ec05a6ba159d1b94e8a779df866..e1b1b97907590f40317a36d3adf46dded52f084b 100644 (file)
@@ -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!";
        }
     };