From 2c77235fa2a6e2f747418c3cd255991226315f4c Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Thu, 14 Apr 2022 15:14:51 -0400 Subject: [PATCH] remove if block around range over constraints --- packs/democratic_csi_nfs/templates/_constraints.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packs/democratic_csi_nfs/templates/_constraints.tpl b/packs/democratic_csi_nfs/templates/_constraints.tpl index 6eabe89..9c3a5a5 100644 --- a/packs/democratic_csi_nfs/templates/_constraints.tpl +++ b/packs/democratic_csi_nfs/templates/_constraints.tpl @@ -9,7 +9,7 @@ constraint { value = true } -[[- if .my.constraints -]][[ range $idx, $constraint := .my.constraints ]] +[[ range $idx, $constraint := .my.constraints ]] constraint { attribute = [[ $constraint.attribute | quote ]] [[- if $constraint.value ]] @@ -19,4 +19,4 @@ constraint { operator = [[ $constraint.operator | quote ]] [[- end ]] } -[[- end ]][[- end ]][[- end -]] +[[- end ]][[- end ]]