Comment 4 for bug 1943198

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-rabbitmq-server (master)

Reviewed: https://review.opendev.org/c/openstack/charm-rabbitmq-server/+/814418
Committed: https://opendev.org/openstack/charm-rabbitmq-server/commit/223ec26617e8c6fca1c02e280410708d23dcd81c
Submitter: "Zuul (22348)"
Branch: master

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.

    Add unit test.

    Closes-Bug: #1943198
    Change-Id: I24380e24ff1edbede9c2db1671a4fc05d5a7cc63