Skip to content

Commit

Permalink
Clarify get_node_ip_address docstring (ray-project#11881)
Browse files Browse the repository at this point in the history
  • Loading branch information
dHannasch authored Nov 14, 2020
1 parent 9fbeefd commit 5891759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ray/_private/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5891759

Please sign in to comment.