[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
This commit is contained in:
@@ -242,7 +242,19 @@ config_zun_dashboard
|
||||
|
||||
if settings_changed; then
|
||||
${MANAGE_PY} collectstatic --noinput --clear
|
||||
${MANAGE_PY} compress --force
|
||||
compress_ok="false"
|
||||
for a in 1 2 3 4 5; do
|
||||
if ${MANAGE_PY} compress --force 2>&1 > /dev/null; then
|
||||
compress_ok="true"
|
||||
break
|
||||
else
|
||||
echo "attempt ${a} failed"
|
||||
fi
|
||||
done
|
||||
if [ "$compress_ok" = "false" ]; then
|
||||
echo "The compress operation failed after 5 attempts."
|
||||
exit 1
|
||||
fi
|
||||
settings_bundle | md5sum > $HASH_PATH
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user