diff --git a/tools/cibsecret.in b/tools/cibsecret.in index 8923a70..6326bf0 100644 --- a/tools/cibsecret.in +++ b/tools/cibsecret.in @@ -182,9 +182,9 @@ get_live_peers() { [ $? -eq 0 ] || fatal $CRM_EX_UNAVAILABLE "couldn't get local node name" # Get a list of all other cluster nodes - GLP_ALL_PEERS="$(crm_node -l)" + GLP_ALL_PEERS="$(crmadmin -N -q)" [ $? -eq 0 ] || fatal $CRM_EX_UNAVAILABLE "couldn't determine cluster nodes" - GLP_ALL_PEERS="$(echo "$GLP_ALL_PEERS" | awk '{print $2}' | grep -v "^${GLP_LOCAL_NODE}$")" + GLP_ALL_PEERS="$(echo "$GLP_ALL_PEERS" | grep -v "^${GLP_LOCAL_NODE}$")" # Make a list of those that respond to pings if [ "$(id -u)" = "0" ] && which fping >/dev/null 2>&1; then