Comment 4 for bug 1987685

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-hacluster (stable/jammy)

Reviewed: https://review.opendev.org/c/openstack/charm-hacluster/+/854652
Committed: https://opendev.org/openstack/charm-hacluster/commit/a2ed86b295cb445f5f1d1a4eee0127f34d6073a1
Submitter: "Zuul (22348)"
Branch: stable/jammy

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+).

    Change-Id: I3e00daa1b877a7faae1370f08b2d9c5bd7795c5f
    Closes-Bug: #1987685
    Related-Bug: #1972022
    (cherry picked from commit 4e53bea0769d6c8c37e1e2a612c191961e738222)