commit a2ed86b295cb445f5f1d1a4eee0127f34d6073a1
Author: Felipe Reyes <email address hidden>
Date: Thu Aug 25 12:13:33 2022 -0400
Fix 'crm node show' parsing to get list of nodes.
The command 'crm node show' is used on jammy to retrieve the list of
nodes defined in a cluster, although this command also includes the
properties set on a node (e.g. standby=off) which breaks the current
logic parsing.
This change uses a regular expresion to filter out all the lines from
the output that don't start with a non-white character (^\S+).
Reviewed: https:/ /review. opendev. org/c/openstack /charm- hacluster/ +/854652 /opendev. org/openstack/ charm-hacluster /commit/ a2ed86b295cb445 f5f1d1a4eee0127 f34d6073a1
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/jammy
commit a2ed86b295cb445 f5f1d1a4eee0127 f34d6073a1
Author: Felipe Reyes <email address hidden>
Date: Thu Aug 25 12:13:33 2022 -0400
Fix 'crm node show' parsing to get list of nodes.
The command 'crm node show' is used on jammy to retrieve the list of
nodes defined in a cluster, although this command also includes the
properties set on a node (e.g. standby=off) which breaks the current
logic parsing.
This change uses a regular expresion to filter out all the lines from
the output that don't start with a non-white character (^\S+).
Change-Id: I3e00daa1b877a7 faae1370f08b2d9 c5bd7795c5f c37e1e2a612c191 961e738222)
Closes-Bug: #1987685
Related-Bug: #1972022
(cherry picked from commit 4e53bea0769d6c8