Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.13: correctly format disabled plugins in 'rabbitmq-plugins list' (backport #11197) #11198

Merged
merged 3 commits into from
May 9, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 9, 2024

This is #11190 by @gomoripeti that passes the formatter tests. I've also tweaked them a bit to make the input more diverse.

References #10865 #10870.


This is an automatic backport of pull request #11197 done by Mergify.

gomoripeti and others added 3 commits May 9, 2024 04:18
Since commit c0187ec the value of `running_version` is converted
to_string (`nil` would become the empty string). But the formatter
expected `running_version` to be `nil` if the plugin is not
running. This did not match and not running/not enabled plugins were
marked incorrectly as "pending upgrade to...".

For example:
```
$ rabbitmq-plugins list trust -q
[  ] rabbitmq_trust_store               (pending upgrade to 3.13.0+51.g9145b53)

$ rabbitmq-plugins list trust --formatter erlang -q
 #{status => running,format => normal,
  plugins =>
      [#{enabled => not_enabled,name => rabbitmq_trust_store,running => false,
         version => <<"3.13.0+51.g9145b53">>,running_version => <<>>}]}
```

(cherry picked from commit 69eb2b9)
(cherry picked from commit 4a3806b)
(cherry picked from commit a21a609)
@michaelklishin michaelklishin added this to the 3.13.3 milestone May 9, 2024
@michaelklishin michaelklishin merged commit 43292a6 into v3.13.x May 9, 2024
16 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v3.13.x/pr-11197 branch May 9, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants