From 83814342ad9672210fcb526bbe36edb028c86322 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 f6b7e0e2f..d42ab21be 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -489,7 +489,7 @@ def start(node_ip_address, address, port, redis_password, redis_shard_ports, 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 89a11306b..4e06181c8 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 other network configuration.