fix(exports): check if exports is mapping before iterating on it

This commit is contained in:
sticky-note 2022-01-31 09:10:42 +11:00
parent 9f3136cf20
commit c2678d87fa

View file

@ -3,6 +3,6 @@
# Your changes will be overwritten.
########################################################################
#
{% for dir, opts in salt['pillar.get']('nfs:server:exports').items() -%}
{% for dir, opts in salt['pillar.get']('nfs:server:exports', {}).items() -%}
{{ dir }} {{ opts }}
{% endfor -%}