dracut-module-setup.sh: fix breakage in get_pcs_fence_kdump_nodes()
pcs cluster and cluster cib-upgrade may throw some information and disturb the parsing. Mute them Signed-off-by: Pingfan Liu <piliu@redhat.com> Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
parent
6348398743
commit
f33f30eb61
@ -678,7 +678,7 @@ is_localhost() {
|
|||||||
get_pcs_fence_kdump_nodes() {
|
get_pcs_fence_kdump_nodes() {
|
||||||
local nodes
|
local nodes
|
||||||
|
|
||||||
pcs cluster sync && pcs cluster cib-upgrade
|
pcs cluster sync > /dev/null 2>&1 && pcs cluster cib-upgrade > /dev/null 2>&1
|
||||||
# get cluster nodes from cluster cib, get interface and ip address
|
# get cluster nodes from cluster cib, get interface and ip address
|
||||||
nodelist=`pcs cluster cib | xmllint --xpath "/cib/status/node_state/@uname" -`
|
nodelist=`pcs cluster cib | xmllint --xpath "/cib/status/node_state/@uname" -`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user