c563b9
From 240b9ec01e6a6e6554f0ae13d759c01339835a40 Mon Sep 17 00:00:00 2001
c563b9
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
c563b9
Date: Wed, 27 Jan 2021 10:10:03 +0100
c563b9
Subject: [PATCH] Feature: cibsecret: use crmadmin -N (which also lists guest
c563b9
 and remote nodes) to get nodes to sync to
c563b9
c563b9
---
c563b9
 tools/cibsecret.in | 4 ++--
c563b9
 1 file changed, 2 insertions(+), 2 deletions(-)
c563b9
c563b9
diff --git a/tools/cibsecret.in b/tools/cibsecret.in
c563b9
index 8923a70..6326bf0 100644
c563b9
--- a/tools/cibsecret.in
c563b9
+++ b/tools/cibsecret.in
c563b9
@@ -182,9 +182,9 @@ get_live_peers() {
c563b9
     [ $? -eq 0 ] || fatal $CRM_EX_UNAVAILABLE "couldn't get local node name"
c563b9
 
c563b9
     # Get a list of all other cluster nodes
c563b9
-    GLP_ALL_PEERS="$(crm_node -l)"
c563b9
+    GLP_ALL_PEERS="$(crmadmin -N -q)"
c563b9
     [ $? -eq 0 ] || fatal $CRM_EX_UNAVAILABLE "couldn't determine cluster nodes"
c563b9
-    GLP_ALL_PEERS="$(echo "$GLP_ALL_PEERS" | awk '{print $2}' | grep -v "^${GLP_LOCAL_NODE}$")"
c563b9
+    GLP_ALL_PEERS="$(echo "$GLP_ALL_PEERS" | grep -v "^${GLP_LOCAL_NODE}$")"
c563b9
 
c563b9
     # Make a list of those that respond to pings
c563b9
     if [ "$(id -u)" = "0" ] && which fping >/dev/null 2>&1; then
c563b9
-- 
c563b9
1.8.3.1
c563b9