From 7a2d7964d8f944bd60c1f03d58d6cc190c7a7015 Mon Sep 17 00:00:00 2001 From: Lingxuan Zuo Date: Fri, 3 Jul 2020 20:37:19 +0800 Subject: [PATCH] Bool config string stream must be in true or 1 (#9292) --- src/ray/common/ray_config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ray/common/ray_config.h b/src/ray/common/ray_config.h index 2c93dbb95..47a89125a 100644 --- a/src/ray/common/ray_config.h +++ b/src/ray/common/ray_config.h @@ -58,7 +58,8 @@ class RayConfig { value.end(), \ value.begin(), \ ::tolower); \ - name##_ = value == "true"; \ + name##_ = value == "true" || \ + value == "1"; \ } else { \ std::istringstream stream(pair.second); \ stream >> name##_; \