From 8c74fdb90904078acf0406456fc1634cd0e3eb2b Mon Sep 17 00:00:00 2001
From: "Fabian.Jakub" <fabian@jakub.com>
Date: Wed, 14 Jun 2023 16:10:27 +0200
Subject: [PATCH] module entry: dont support yaml list syntax but rather just a
 string

---
 templates/common/build_icon.sh               | 2 +-
 templates/common/build_python_environment.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/common/build_icon.sh b/templates/common/build_icon.sh
index 9892cca..8a5f415 100644
--- a/templates/common/build_icon.sh
+++ b/templates/common/build_icon.sh
@@ -5,7 +5,7 @@ ICON_VERSION=%ICON.VERSION%
 COMPILER=%SPACK.COMPILER%
 
 MODULES="%MODULES%"
-if [ ! -z "${MODULES}" ]; then module load $(python -c "print(' '.join(${MODULES}))"); fi
+if [ ! -z "${MODULES}" ]; then module load ${MODULES}; fi
 
 # If the workdir directory does not exist create it
 if [ ! -d ${WORKDIR} ]; then
diff --git a/templates/common/build_python_environment.sh b/templates/common/build_python_environment.sh
index 6eca487..d545064 100644
--- a/templates/common/build_python_environment.sh
+++ b/templates/common/build_python_environment.sh
@@ -9,7 +9,7 @@ SPACK_COMPILER=%SPACK.COMPILER%
 PYTHON_VERSION=%PYTHON_ENVIRONMENT.PYTHON_VERSION%
 
 MODULES="%MODULES%"
-if [ ! -z "${MODULES}" ]; then module load $(python -c "print(' '.join(${MODULES}))"); fi
+if [ ! -z "${MODULES}" ]; then module load ${MODULES}; fi
 
 # Go to the working directory
 cd ${WORKDIR}
-- 
GitLab