Skip to content

Commit f145ee2

Browse files
authored
Merge pull request #250 from github/snh/offline-cluster-nodes
Fix offline cluster node detection
2 parents 5632cc5 + 253272c commit f145ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ ghe_remote_logger () {
271271
# Returns the online nodes with a certain role in cluster
272272
ghe_cluster_online_nodes () {
273273
role=$1
274-
echo "ghe-config --get-regexp cluster.*.$role | egrep 'true$' | awk '{ print \$1; }' | awk 'BEGIN { FS=\".\" }; { print \$2 };' | xargs -I{} -n1 bash -c 'if [ \"\$(ghe-config cluster.\$hostname.offline)\" != true ]; then ghe-config cluster.{}.hostname; fi'" | ghe-ssh "$GHE_HOSTNAME" /bin/bash
274+
echo "ghe-config --get-regexp cluster.*.$role | egrep 'true$' | awk '{ print \$1; }' | awk 'BEGIN { FS=\".\" }; { print \$2 };' | xargs -I{} -n1 bash -c 'if [ \"\$(ghe-config cluster.{}.offline)\" != true ]; then ghe-config cluster.{}.hostname; fi'" | ghe-ssh "$GHE_HOSTNAME" /bin/bash
275275
}
276276

277277
# Usage: ghe_verbose <message>

0 commit comments

Comments
 (0)