mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 02:01:24 +08:00
Raise error if space in redis password (#5673)
This commit is contained in:
committed by
Philipp Moritz
parent
0bf79cfbde
commit
ee5db5b67f
@@ -772,6 +772,8 @@ def _start_redis_instance(executable,
|
||||
# Construct the command to start the Redis server.
|
||||
command = [executable]
|
||||
if password:
|
||||
if " " in password:
|
||||
raise ValueError("Spaces not permitted in redis password.")
|
||||
command += ["--requirepass", password]
|
||||
command += (
|
||||
["--port", str(port), "--loglevel", "warning"] + load_module_args)
|
||||
|
||||
Reference in New Issue
Block a user