From 101e4977d32d68b04d2099a9c344d6b1386493a7 Mon Sep 17 00:00:00 2001
From: Lubomir Dolezal <lubomir.bucek@eox.at>
Date: Thu, 14 Apr 2022 17:46:23 +0200
Subject: [PATCH] fix syntax of validity mask add

---
 charts/common/init-db.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/charts/common/init-db.sh b/charts/common/init-db.sh
index 5e3fc9e..6c325c9 100644
--- a/charts/common/init-db.sh
+++ b/charts/common/init-db.sh
@@ -116,8 +116,7 @@ if python3 manage.py id check {{ index (keys $.Values.global.collections | sortA
     {{- end }}
     {{- end }}
     {{- range $mask_type := $product_type.masks }}
-    python3 manage.py masktype create {{ $product_type.name | quote }} {{ $mask_type.name | quote }} \
-        {{- if $mask_type.validity -}} --validity \ {{- end }} --traceback
+    python3 manage.py masktype create {{ $product_type.name | quote }} {{ $mask_type.name | quote }} {{- if $mask_type.validity }} --validity {{- end }} --traceback
     {{- end }}
     {{- end }}{{/* range $.Values.global.productTypes */}}
 
-- 
GitLab