charm-hacluster/unit_tests
Felipe Reyes 4e53bea076 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: I3e00daa1b877a7faae1370f08b2d9c5bd7795c5f
Closes-Bug: #1987685
Related-Bug: #1972022
2022-08-25 12:13:33 -04:00
..
testdata Adjust quorum after node removal 2021-03-11 17:24:01 +01:00
__init__.py Sync libraries & common files prior to freeze 2020-09-28 10:22:11 +01:00
test_action.py Use unittest.mock instead of mock 2021-12-15 10:32:40 +00:00
test_hacluster_hooks.py Install resource-agents-extra on jammy. 2022-05-06 09:55:15 -04:00
test_hacluster_utils.py Merge "Drop the use of 'crm node status' on jammy." 2022-06-23 20:58:16 +00:00
test_pcmk.py Fix 'crm node show' parsing to get list of nodes. 2022-08-25 12:13:33 -04:00
test_utils.py Use unittest.mock instead of mock 2021-12-15 10:32:40 +00:00