From 62e05c6f50591b266ec11c556a27c9ecbe1e2ac3 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Wed, 27 Jan 2021 18:06:38 -0700 Subject: [PATCH] fixing defines --- templates/get_cert.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/get_cert.sh.j2 b/templates/get_cert.sh.j2 index 4dcedc0..cc099db 100644 --- a/templates/get_cert.sh.j2 +++ b/templates/get_cert.sh.j2 @@ -27,10 +27,10 @@ fi -k "{{ ipahosts.key_location | default(ipa_getcert_key_default_location) }}" \ -f "{{ ipahosts.cert_location | default(ipa_getcert_cert_default_location) }}" \ {% endif %} - {% if ipahosts.postcmd %} + {% if ipahosts.postcmd is defined %} -C "{{ ipahosts.postcmd }}" \ {% endif %} - {% if ipahosts.owner %} + {% if ipahosts.owner is defined %} -O "{{ ipahosts.owner }}" \ -o "{{ ipahosts.owner }}" \ {% endif %}