Skip to content

Commit 9f55729

Browse files
committed
[2024.2 and earlier]: horizon: Work around pyscss bug
See [1] and [2]. [1]: https://bugs.launchpad.net/horizon/+bug/2045394 [2]: https://launchpadlibrarian.net/792177956/horizon_4%3A25.1.0-0ubuntu1_4%3A25.1.0-0ubuntu1.1.diff.gz Change-Id: Ie99f9d941e91d438f2d983b0a0e5af01483ade82 (cherry picked from commit cb204aa)
1 parent a3ca3af commit 9f55729

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docker/horizon/extend_start.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,19 @@ config_zun_dashboard
242242

243243
if settings_changed; then
244244
${MANAGE_PY} collectstatic --noinput --clear
245-
${MANAGE_PY} compress --force
245+
compress_ok="false"
246+
for a in 1 2 3 4 5; do
247+
if ${MANAGE_PY} compress --force 2>&1 > /dev/null; then
248+
compress_ok="true"
249+
break
250+
else
251+
echo "attempt ${a} failed"
252+
fi
253+
done
254+
if [ "$compress_ok" = "false" ]; then
255+
echo "The compress operation failed after 5 attempts."
256+
exit 1
257+
fi
246258
settings_bundle | md5sum > $HASH_PATH
247259
fi
248260

0 commit comments

Comments
 (0)