Skip to content
Snippets Groups Projects
Commit 2dedb85d authored by Wolodja Wentland's avatar Wolodja Wentland
Browse files

Sort options in my.cnf

Options in my.cnf are not sorted at this moment which introduces unnecessary
changes whenever the file is being rewritten.
parent 98b054fc
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{%- if sdata %} {%- if sdata %}
[{{ sname }}] [{{ sname }}]
{%- for mparam, mvalue in sdata.items()|default([]) -%} {%- for mparam, mvalue in sdata.items()|default([])|sort -%}
{%- set indents = 40 - mparam|count %} {%- set indents = 40 - mparam|count %}
{% if mvalue == "noarg_present" -%} {% if mvalue == "noarg_present" -%}
{{ mparam }} {{ mparam }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment