From 8a77cf925a444de9cf2f63b15759466e9fe2bdc6 Mon Sep 17 00:00:00 2001 From: Keqiu Hu Date: Thu, 17 Sep 2020 09:26:55 -0700 Subject: [PATCH] [cli][ray] update ray cli message (#10823) --- doc/source/cluster/slurm.rst | 2 +- python/ray/scripts/scripts.py | 2 +- python/ray/tests/test_cli_patterns/test_ray_start.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/cluster/slurm.rst b/doc/source/cluster/slurm.rst index 718340c5f..9be636332 100644 --- a/doc/source/cluster/slurm.rst +++ b/doc/source/cluster/slurm.rst @@ -79,7 +79,7 @@ Starter SLURM script redis_password = sys.argv[1] num_cpus = int(sys.argv[2]) - ray.init(address=os.environ["ip_head"], redis_password=redis_password) + ray.init(address=os.environ["ip_head"], _redis_password=redis_password) print("Nodes in the Ray cluster:") print(ray.nodes()) diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 57038d435..a4b0b690d 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -584,7 +584,7 @@ def start(node_ip_address, redis_address, address, redis_port, port, cli_logger.print( "ray{}init(address{}{}{})", c.magenta("."), c.magenta("="), c.yellow("'auto'"), - ", redis_password{}{}".format( + ", _redis_password{}{}".format( c.magenta("="), c.yellow("'" + redis_password + "'")) if redis_password else "") diff --git a/python/ray/tests/test_cli_patterns/test_ray_start.txt b/python/ray/tests/test_cli_patterns/test_ray_start.txt index bc7d5f2c5..807634301 100644 --- a/python/ray/tests/test_cli_patterns/test_ray_start.txt +++ b/python/ray/tests/test_cli_patterns/test_ray_start.txt @@ -10,7 +10,7 @@ Next steps Alternatively, use the following Python code: import ray - ray\.init\(address='auto', redis_password='.+'\) + ray\.init\(address='auto', _redis_password='.+'\) If connection fails, check your firewall settings and network configuration.