From 19d0102c2ea69e6419a196250036f33590277fab Mon Sep 17 00:00:00 2001 From: Matt M Date: Wed, 20 Dec 2017 22:31:49 -0500 Subject: [PATCH] Ensure that pillar.get on nginx:ng:dhparam has a sane default value if dhparam isn't defined in the pillar. --- nginx/ng/certificates.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/ng/certificates.sls b/nginx/ng/certificates.sls index dbc8cbd..17e2060 100644 --- a/nginx/ng/certificates.sls +++ b/nginx/ng/certificates.sls @@ -5,7 +5,7 @@ include: {% set certificates_path = salt['pillar.get']('nginx:ng:certificates_path', '/etc/nginx/ssl') %} -{%- for dh_param, value in salt.pillar.get('nginx:ng:dh_param').items() %} +{%- for dh_param, value in salt['pillar.get']('nginx:ng:dh_param', {}).items() %} {%- if value is string %} create_nginx_dhparam_{{ dh_param }}_key: file.managed: