mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Prevent 'key: None' in config files
This commit is contained in:
parent
573f18c36b
commit
a779417b1a
6 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
[{{ sname }}]
|
||||
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
|
||||
{%- if mvalue is none %}{% continue %}{% endif -%}
|
||||
{%- set indents = 40 - mparam|count %}
|
||||
{% if mvalue == "noarg_present" -%}
|
||||
{{ mparam }}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
[{{ sname }}]
|
||||
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
|
||||
{%- if mvalue is none %}{% continue %}{% endif -%}
|
||||
{%- set indents = 40 - mparam|count %}
|
||||
{% if mvalue == "noarg_present" -%}
|
||||
{{ mparam }}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
[{{ sname }}]
|
||||
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
|
||||
{%- if mvalue is none %}{% continue %}{% endif -%}
|
||||
{%- set indents = 40 - mparam|count %}
|
||||
{% if mvalue == "noarg_present" -%}
|
||||
{{ mparam }}
|
||||
|
|
|
@ -26,12 +26,14 @@
|
|||
|
||||
[{{ sname }}]
|
||||
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
|
||||
{%- if mvalue is none %}{% continue %}{% endif -%}
|
||||
{%- set indents = 40 - mparam|count %}
|
||||
{% if mvalue == "noarg_present" -%}
|
||||
{{ mparam }}
|
||||
{%- else -%}
|
||||
{%- if mvalue is iterable and mvalue is not string -%}
|
||||
{%- for item in mvalue -%}
|
||||
{%- if item is none %}{% continue %}{% endif -%}
|
||||
{{ mparam }}{{ '='|indent(indents, true) }} {{ item }}
|
||||
{% endfor -%}
|
||||
{%- else -%}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
[{{ sname }}]
|
||||
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
|
||||
{%- if mvalue is none %}{% continue %}{% endif -%}
|
||||
{%- set indents = 40 - mparam|count %}
|
||||
{% if mvalue == "noarg_present" -%}
|
||||
{{ mparam }}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
[{{ sname }}]
|
||||
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
|
||||
{%- if mvalue is none %}{% continue %}{% endif -%}
|
||||
{%- set indents = 40 - mparam|count %}
|
||||
{% if mvalue == "noarg_present" -%}
|
||||
{{ mparam }}
|
||||
|
|
Loading…
Add table
Reference in a new issue