kdumpctl: fix a variable expansion in check_fence_kdump_config()

Both $ipaddrs and $node can hold multiple strings, so use "" to brace them.

Signed-off-by: Pingfan Liu <piliu@redhat.com>
Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Pingfan Liu 2020-12-11 09:20:00 +08:00 committed by Kairui Song
parent 872d6b36de
commit 0bd0c5b9f1

View File

@ -944,7 +944,7 @@ check_fence_kdump_config()
return 1
fi
# node can be ipaddr
echo $ipaddrs | grep $node > /dev/null
echo "$ipaddrs " | grep "$node " > /dev/null
if [ $? -eq 0 ]; then
derror "Option fence_kdump_nodes cannot contain $node"
return 1