Merge pull request #41 from sticky-note/fix/exports

fix(exports): check if exports is `mapping` before iterating on it
This commit is contained in:
sticky-note 2022-01-31 10:17:57 +11:00 committed by GitHub
commit 0c2054c5bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 -%}