Skip to content

Conversation

lukebakken
Copy link
Collaborator

Follow-up to #14655

The code to format cacerts and certs_keys needs to check if the incoming value is a list or map, and skip it if not. This is the same pattern as used in a later function head:

format_socket_opts([Head = {Name, Value} | Tail], Acc) when is_list(Value) ->

It ensures that the code won't be called again on an already-formatted value.

@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch from 1cf286d to b5e93e5 Compare October 9, 2025 15:23
@lukebakken lukebakken marked this pull request as draft October 9, 2025 15:48
@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch 4 times, most recently from 4a085ea to f710de2 Compare October 9, 2025 16:20
@lukebakken lukebakken marked this pull request as ready for review October 9, 2025 16:21
@lukebakken lukebakken marked this pull request as draft October 9, 2025 16:52
@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch 2 times, most recently from 2f7294f to bbbb0d8 Compare October 9, 2025 16:56
@lukebakken lukebakken marked this pull request as ready for review October 9, 2025 16:58
Follow-up to rabbitmq#14655

The code to format `cacerts` and `certs_keys` needs to check if the
incoming value is a list or map, and skip it if not. This is the same
pattern as used in a later function head:

```
format_socket_opts([Head = {Name, Value} | Tail], Acc) when is_list(Value) ->
```

It ensures that the code won't be called again on an already-formatted
value.
@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch from bbbb0d8 to 275f0a4 Compare October 9, 2025 21:49
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