Quote installer health targets for shell and systemd readers
This commit is contained in:
1 parent
f50bfbc60d
commit
b92edc02f5
2 files changed
+8
-3
No files matched your search
@@ -579,8 +579,12 @@ class Installer:
|
|||||||
f"amqp://coulobre:{self.state['broker_password']}@127.0.0.1:5672/coulobre"
|
f"amqp://coulobre:{self.state['broker_password']}@127.0.0.1:5672/coulobre"
|
||||||
),
|
),
|
||||||
"COULOBRE_LOCAL_DATABASE_PROVISIONING": "1",
|
"COULOBRE_LOCAL_DATABASE_PROVISIONING": "1",
|
||||||
"COULOBRE_SERVICE_HEALTH": json.dumps(
|
"COULOBRE_SERVICE_HEALTH": (
|
||||||
{"panel": {"local": services}}, separators=(",", ":")
|
"'"
|
||||||
|
+ json.dumps(
|
||||||
|
{"panel": {"local": services}}, separators=(",", ":")
|
||||||
|
)
|
||||||
|
+ "'"
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
if self.php:
|
if self.php:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import shlex
|
||||||
import stat
|
import stat
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
@@ -69,7 +70,7 @@ class InstallerParametersTests(unittest.TestCase):
|
|||||||
"rabbitmq",
|
"rabbitmq",
|
||||||
]
|
]
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
json.loads(env["COULOBRE_SERVICE_HEALTH"]),
|
json.loads(shlex.split(env["COULOBRE_SERVICE_HEALTH"])[0]),
|
||||||
{"panel": {"local": base + extras}},
|
{"panel": {"local": base + extras}},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user