Blame SOURCES/0017-Fix-cman-Print-the-nodeid-of-nodes-with-fake-names.patch

3d71c6
From: Andrew Beekhof <andrew@beekhof.net>
3d71c6
Date: Thu, 3 Sep 2015 10:58:59 +1000
3d71c6
Subject: [PATCH] Fix: cman: Print the nodeid of nodes with fake names
3d71c6
3d71c6
(cherry picked from commit dd9a379408aa43b89c81d31ce7efa60b2e77f593)
3d71c6
---
3d71c6
 tools/crm_node.c | 3 ++-
3d71c6
 1 file changed, 2 insertions(+), 1 deletion(-)
3d71c6
3d71c6
diff --git a/tools/crm_node.c b/tools/crm_node.c
3d71c6
index 24cc4d7..ed02ee7 100644
3d71c6
--- a/tools/crm_node.c
3d71c6
+++ b/tools/crm_node.c
3d71c6
@@ -494,7 +494,8 @@ try_cman(int command, enum cluster_type_e stack)
3d71c6
 
3d71c6
             for (lpc = 0; lpc < node_count; lpc++) {
3d71c6
                 if(valid_cman_name(cman_nodes[lpc].cn_name, cman_nodes[lpc].cn_nodeid) == FALSE) {
3d71c6
-                    /* Do not print */
3d71c6
+                    /* The name was invented, but we need to print something, make it the id instead */
3d71c6
+                    printf("%u ", cman_nodes[lpc].cn_nodeid);
3d71c6
 
3d71c6
                 } if (command == 'l') {
3d71c6
                     printf("%s ", cman_nodes[lpc].cn_name);