Deprecate redis_address argument in favor of address. (#6654)

This commit is contained in:
Robert Nishihara
2020-01-02 20:18:34 -08:00
committed by GitHub
parent d39e76f2ce
commit 92e44a5dc8
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -244,6 +244,10 @@ def start(node_ip_address, redis_address, address, redis_port,
plasma_store_socket_name, raylet_socket_name, temp_dir, include_java,
java_worker_options, load_code_from_local, use_pickle,
internal_config):
if redis_address is not None:
raise DeprecationWarning("The --redis-address argument is "
"deprecated. Please use --address instead.")
# Convert hostnames to numerical IP address.
if node_ip_address is not None:
node_ip_address = services.address_to_ip(node_ip_address)
+4
View File
@@ -658,6 +658,10 @@ def init(address=None,
arguments is passed in.
"""
if redis_address is not None:
raise DeprecationWarning("The redis_address argument is deprecated. "
"Please use address instead.")
if redis_address is not None or address is not None:
redis_address, _, _ = services.validate_redis_address(
address, redis_address)