Skip to content

Conversation

@mergify
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
@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.

3 participants