From c2678d87fa20adcf03039bc04ccada0e46b1ab60 Mon Sep 17 00:00:00 2001 From: sticky-note Date: Mon, 31 Jan 2022 09:10:42 +1100 Subject: [PATCH] fix(exports): check if exports is `mapping` before iterating on it --- nfs/files/exports | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs/files/exports b/nfs/files/exports index 5516c90..95c8622 100644 --- a/nfs/files/exports +++ b/nfs/files/exports @@ -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 -%}