Commit 4072326
committed
Yet another JSON CLI formatter fix
The bug addressed by this PR was found while running the following
command:
```
rabbitmqctl environment --formatter=json
```
...after configuring the `rabbit` application to use `cacerts` with a
list of binaries as the value, rather than `cacertfile`.
This PR also fixes the formatting of the `tcp_listeners` and
`ssl_listeners` output, because `[5672]` is a valid list of unicode
codepoints that `unicode:characters_to_binary` will happily convert it,
resulting in `"tcp_listeners": "ᘨ"` in the output.
I also ensured that the fixes in #14511 and #14398 still work as
intended.1 parent bc8a030 commit 4072326
File tree
2 files changed
+39
-2
lines changed- deps/rabbitmq_cli
- lib/rabbitmq/cli/formatters
- test
2 files changed
+39
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | | - | |
97 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
101 | 117 | | |
102 | 118 | | |
103 | 119 | | |
| |||
129 | 145 | | |
130 | 146 | | |
131 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
132 | 165 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
0 commit comments