Skip to content

Commit

Permalink
remove if block around range over constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Apr 14, 2022
1 parent 5d6f4ec commit 2c77235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packs/democratic_csi_nfs/templates/_constraints.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
Expand All @@ -19,4 +19,4 @@ constraint {
operator = [[ $constraint.operator | quote ]]
[[- end ]]
}
[[- end ]][[- end ]][[- end -]]
[[- end ]][[- end ]]

0 comments on commit 2c77235

Please sign in to comment.