From 5891759a3e3f05381b946ae27fbb7f301caebdb1 Mon Sep 17 00:00:00 2001 From: dHannasch Date: Sat, 14 Nov 2020 16:20:58 -0700 Subject: [PATCH] Clarify get_node_ip_address docstring (#11881) --- python/ray/_private/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/_private/services.py b/python/ray/_private/services.py index b8d63b7b3..477b6cfad 100644 --- a/python/ray/_private/services.py +++ b/python/ray/_private/services.py @@ -346,14 +346,14 @@ def address_to_ip(address): def get_node_ip_address(address="8.8.8.8:53"): - """Determine the IP address of the local node. + """IP address by which the local node can be reached *from* the `address`. Args: address (str): The IP address and port of any known live service on the network you care about. Returns: - The IP address of the current node. + The IP address by which the local node can be reached from the address. """ if ray.worker._global_node is not None: return ray.worker._global_node.node_ip_address