File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1084,18 +1084,16 @@ runtime_parameter_definition(Param) ->
1084
1084
<<" value" >> => maybe_map (pget (value , Param ))
1085
1085
}.
1086
1086
1087
- maybe_map (Value ) when is_list ( Value ) ->
1087
+ maybe_map (Value ) ->
1088
1088
% % Not all definitions are maps. `federation-upstream-set` is
1089
1089
% % a list of maps, and it should be exported as it has been
1090
1090
% % imported
1091
1091
try
1092
- maps : from_list (Value )
1092
+ rabbit_data_coercion : to_map (Value )
1093
1093
catch
1094
- _ : _ ->
1094
+ error : badarg ->
1095
1095
Value
1096
- end ;
1097
- maybe_map (Value ) ->
1098
- Value .
1096
+ end .
1099
1097
1100
1098
list_global_runtime_parameters () ->
1101
1099
[global_runtime_parameter_definition (P ) || P <- rabbit_runtime_parameters :list_global (), not is_internal_parameter (P )].
You can’t perform that action at this time.
0 commit comments