Created
January 11, 2017 14:19
-
-
Save silenius/4a2b3bfa037bab6e287e848d0a92a9a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for k, v in storage.devices.items() %} | |
Device { | |
Name = "{{ k }}" | |
{% for pk, pv in v.items() %} | |
{%- if pv is string -%} | |
{{ pk }} = "{{ pv }}" | |
{% elif pv == True -%} | |
{{ pk }} = yes | |
{% elif pv == False -%} | |
{{ pk }} = no | |
{% else -%} | |
{{ pk }} = {{ pv }} | |
{%- endif %} | |
{%- endfor %} | |
} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment