From 553f5508986e491bc8613674dd07bbff258a4753 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Fri, 13 Sep 2024 00:29:33 +0300 Subject: [PATCH] typo --- library/common/templates/class/cnpg/_cluster.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common/templates/class/cnpg/_cluster.tpl b/library/common/templates/class/cnpg/_cluster.tpl index 759b0375..03d04820 100644 --- a/library/common/templates/class/cnpg/_cluster.tpl +++ b/library/common/templates/class/cnpg/_cluster.tpl @@ -53,14 +53,14 @@ {{/* Postgres UID and GID */}} {{- $validTypes := (list "int" "int64" "float64") -}} {{- if $objectData.cluster.postgresUID -}} - {{- if not mustHas (kindOf $objectData.cluster.postgresUID) $validTypes -}} + {{- if not (mustHas (kindOf $objectData.cluster.postgresUID) $validTypes) -}} {{- fail (printf "CNPG Cluster - Expected [cluster.postgresUID] to be an integer, but got [%s]" (kindOf $objectData.cluster.postgresUID)) -}} {{- end -}} {{- $pgUID = $objectData.cluster.postgresUID -}} {{- end -}} {{- if $objectData.cluster.postgresGID -}} - {{- if not mustHas (kindOf $objectData.cluster.postgresGID) $validTypes -}} + {{- if not (mustHas (kindOf $objectData.cluster.postgresGID) $validTypes) -}} {{- fail (printf "CNPG Cluster - Expected [cluster.postgresGID] to be an integer, but got [%s]" (kindOf $objectData.cluster.postgresGID)) -}} {{- end -}} {{- $pgGID = $objectData.cluster.postgresGID -}}