From ff1b26274e0ddc4b2721bd5ea04459eb16e6639b Mon Sep 17 00:00:00 2001 From: Erik Erlandson Date: Fri, 12 Feb 2021 18:47:00 -0700 Subject: [PATCH] [operator] expose RAY_CONFIG_DIR env var (fix #14074) (#14076) --- python/ray/ray_operator/operator_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/ray/ray_operator/operator_utils.py b/python/ray/ray_operator/operator_utils.py index 3dc50e9a1..98a31ce6f 100644 --- a/python/ray/ray_operator/operator_utils.py +++ b/python/ray/ray_operator/operator_utils.py @@ -10,7 +10,9 @@ from ray.autoscaler._private.providers import _get_default_config RAY_NAMESPACE = os.environ.get("RAY_OPERATOR_POD_NAMESPACE") -RAY_CONFIG_DIR = os.path.expanduser("~/ray_cluster_configs") +RAY_CONFIG_DIR = os.environ.get("RAY_CONFIG_DIR") or \ + os.path.expanduser("~/ray_cluster_configs") + CONFIG_SUFFIX = "_config.yaml" CONFIG_FIELDS = {