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