Browse Source

Add verification that directory pillar is not empty

pull/208/head
pavel-z1 5 years ago
parent
commit
64c3310b43
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      linux/system/directory.sls

+ 2
- 0
linux/system/directory.sls View File

{%- from "linux/map.jinja" import system with context %} {%- from "linux/map.jinja" import system with context %}


{%- if system.directory is defined %}
{%- for name, dir in system.directory.items() %} {%- for name, dir in system.directory.items() %}


{{ dir.name|default(name) }}: {{ dir.name|default(name) }}:
{%- endif %} {%- endif %}


{%- endfor %} {%- endfor %}
{% endif %}

Loading…
Cancel
Save