diff --git a/deploy/panel_installer/engine.py b/deploy/panel_installer/engine.py index 6e0e803..dd10348 100644 --- a/deploy/panel_installer/engine.py +++ b/deploy/panel_installer/engine.py @@ -579,8 +579,12 @@ class Installer: f"amqp://coulobre:{self.state['broker_password']}@127.0.0.1:5672/coulobre" ), "COULOBRE_LOCAL_DATABASE_PROVISIONING": "1", - "COULOBRE_SERVICE_HEALTH": json.dumps( - {"panel": {"local": services}}, separators=(",", ":") + "COULOBRE_SERVICE_HEALTH": ( + "'" + + json.dumps( + {"panel": {"local": services}}, separators=(",", ":") + ) + + "'" ), } if self.php: diff --git a/tests/test_panel_installer.py b/tests/test_panel_installer.py index 8be1843..a0fc166 100644 --- a/tests/test_panel_installer.py +++ b/tests/test_panel_installer.py @@ -1,4 +1,5 @@ import json +import shlex import stat import tempfile import unittest @@ -69,7 +70,7 @@ class InstallerParametersTests(unittest.TestCase): "rabbitmq", ] self.assertEqual( - json.loads(env["COULOBRE_SERVICE_HEALTH"]), + json.loads(shlex.split(env["COULOBRE_SERVICE_HEALTH"])[0]), {"panel": {"local": base + extras}}, )