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:
parent
872d6b36de
commit
0bd0c5b9f1
2
kdumpctl
2
kdumpctl
@ -944,7 +944,7 @@ check_fence_kdump_config()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# node can be ipaddr
|
# node can be ipaddr
|
||||||
echo $ipaddrs | grep $node > /dev/null
|
echo "$ipaddrs " | grep "$node " > /dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
derror "Option fence_kdump_nodes cannot contain $node"
|
derror "Option fence_kdump_nodes cannot contain $node"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user