You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by nl...@apache.org on 2018/10/26 23:49:12 UTC
[incubator-heron] branch master updated: enablebool (#3056)
This is an automated email from the ASF dual-hosted git repository.
nlu90 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new 8218195 enablebool (#3056)
8218195 is described below
commit 8218195d96907ee47fbd8d22ea3b859bbd7049a3
Author: bed debug <hu...@users.noreply.github.com>
AuthorDate: Fri Oct 26 16:49:07 2018 -0700
enablebool (#3056)
---
heron/tools/common/src/python/utils/config.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/heron/tools/common/src/python/utils/config.py b/heron/tools/common/src/python/utils/config.py
index b055a1f..6f52af3 100644
--- a/heron/tools/common/src/python/utils/config.py
+++ b/heron/tools/common/src/python/utils/config.py
@@ -413,7 +413,12 @@ def parse_override_config(namespace):
kv = config.split("=")
if len(kv) != 2:
raise Exception("Invalid config property format (%s) expected key=value" % config)
- overrides[kv[0]] = kv[1]
+ if kv[1] in ['true', 'True', 'TRUE']:
+ overrides[kv[0]] = True
+ elif kv[1] in ['false', 'False', 'FALSE']:
+ overrides[kv[0]] = False
+ else:
+ overrides[kv[0]] = kv[1]
return overrides