Merge pull request #9681 from rabbitmq/pretty-print-feature_flags-file-content

rabbit_feature_flags: Write one feature name per line in `feature_flags`
This commit is contained in:
Jean-Sébastien Pédron 2023-10-11 18:33:34 +02:00 committed by GitHub
commit 2f709e88e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ do_write_enabled_feature_flags_list(EnabledFeatureNames) ->
EnabledFeatureNames1 = lists:sort(EnabledFeatureNames),
File = enabled_feature_flags_list_file(),
Content = io_lib:format("~tp.~n", [EnabledFeatureNames1]),
Content = io_lib:format("~1tp.~n", [EnabledFeatureNames1]),
%% TODO: If we fail to write the the file, we should spawn a process
%% to retry the operation.
case file:write_file(File, Content) of