From 50c315518cb1794716b3339247946cc4e5d8220a Mon Sep 17 00:00:00 2001 From: fe80 Date: Thu, 14 Oct 2021 17:16:11 +0200 Subject: [PATCH] fix nil value check for puppet6 --- templates/sssd.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/sssd.conf.erb b/templates/sssd.conf.erb index 265cf1d..4155b9b 100644 --- a/templates/sssd.conf.erb +++ b/templates/sssd.conf.erb @@ -6,7 +6,7 @@ <% v.map do |ki, vi| -%> <% if vi.is_a?(Array) -%> <%= ki %> = <%= vi.join(', ') %> -<% elsif vi != :undef -%> +<% elsif !vi.nil? && vi != :undef -%> <%= ki %> = <%= vi %> <% end -%> <% end -%>