The command 'crm node show' is used on jammy to retrieve the list of
nodes defined in a cluster. The output for nodes includes ': member'
which breaks ensuing commands that are using list_nodes() output.
For example:
juju-3f6cb6-zaza-4135aa8b2509-8.project.serverstack: member
This change trims everything including and after the ':' from the
output.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- hacluster/ +/862627 /opendev. org/openstack/ charm-hacluster /commit/ f73ca4d52fdc530 531366d65e412a1 7877c88c63
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f73ca4d52fdc530 531366d65e412a1 7877c88c63
Author: Corey Bryant <email address hidden>
Date: Tue Oct 25 16:48:21 2022 +0000
Update 'crm node show' parsing to trim ': member'
The command 'crm node show' is used on jammy to retrieve the list of
nodes defined in a cluster. The output for nodes includes ': member'
which breaks ensuing commands that are using list_nodes() output.
For example: 3f6cb6- zaza-4135aa8b25 09-8.project. serverstack: member
juju-
This change trims everything including and after the ':' from the
output.
Closes-Bug: #1994160 503ec97d99a49b6 dc51ee50c87
Change-Id: I54a4f854f3e293