EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 0584e9d2 authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

sort collections keys when checking initdb

to avoid unnecessary changes in CI runs of config generation
parent 4cb2d033
No related branches found
No related tags found
No related merge requests found
Pipeline #20756 passed
......@@ -86,7 +86,7 @@
# Check if collection exits in database and initialize database only if not
{{- if .Values.global.collections }}
if python3 manage.py id check {{ index (keys $.Values.global.collections) 0 | quote }}; then
if python3 manage.py id check {{ index (keys $.Values.global.collections | sortAlpha) 0 | quote }}; then
echo "Initializing database"
python3 manage.py coveragetype import /opt/core/rgbnir_definition.json --traceback
......
......@@ -86,7 +86,7 @@
# Check if collection exits in database and initialize database only if not
{{- if .Values.global.collections }}
if python3 manage.py id check {{ index (keys $.Values.global.collections) 0 | quote }}; then
if python3 manage.py id check {{ index (keys $.Values.global.collections | sortAlpha) 0 | quote }}; then
echo "Initializing database"
python3 manage.py coveragetype import /opt/core/rgbnir_definition.json --traceback
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment