commit 223ec26617e8c6fca1c02e280410708d23dcd81c
Author: Anna Savchenko <email address hidden>
Date: Mon Oct 18 15:24:03 2021 +0300
Modify the output to action "cluster-status"
to make it user friendly (rabbitmq)
"rabbitmqctl cluster_status" uses escape codes to color/highlight the
output, and it does not have a way to suppress this. This makes the
output to the command "juju run-action rabbitmq-server/leader
cluster-status" not user friendly and difficult to read.
Add the json formatting option to the rabbitmqctl command and use
the json.dumps method to get a user friendly output.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- rabbitmq- server/ +/814418 /opendev. org/openstack/ charm-rabbitmq- server/ commit/ 223ec26617e8c6f ca1c02e28041070 8d23dcd81c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 223ec26617e8c6f ca1c02e28041070 8d23dcd81c
Author: Anna Savchenko <email address hidden>
Date: Mon Oct 18 15:24:03 2021 +0300
Modify the output to action "cluster-status"
to make it user friendly (rabbitmq)
"rabbitmqctl cluster_status" uses escape codes to color/highlight the server/ leader
output, and it does not have a way to suppress this. This makes the
output to the command "juju run-action rabbitmq-
cluster-status" not user friendly and difficult to read.
Add the json formatting option to the rabbitmqctl command and use
the json.dumps method to get a user friendly output.
Add unit test.
Closes-Bug: #1943198 ede9c2db1671a4f c05d5a7cc63
Change-Id: I24380e24ff1edb