summaryrefslogtreecommitdiffstats
path: root/helm
diff options
context:
space:
mode:
authorMiroslav Los <miroslav.los@pantheon.tech>2019-11-15 09:20:09 +0100
committerMiroslav Los <miroslav.los@pantheon.tech>2019-11-15 09:24:54 +0100
commit7e1f8a90d2fd18a5169cea04b6bb53dd9288092e (patch)
tree5c089d095b07c11d4b9c3929a7a35b9774df8f81 /helm
parent18673c56f47a3662ef8b0b981a9af774e2e29826 (diff)
Fix minor issues revealed by pylint
Remove superfluous argument to str.format in dmaap. Fix two tests with the same name in dnsdesig. Raise a proper exception instead of bool in helm. Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech> Issue-ID: CCSDK-1928 Change-Id: I07ff9eaa3b25a4c7864eda2b6189d7357c887dd4
Diffstat (limited to 'helm')
-rw-r--r--helm/plugin/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm/plugin/tasks.py b/helm/plugin/tasks.py
index ac27764..be59472 100644
--- a/helm/plugin/tasks.py
+++ b/helm/plugin/tasks.py
@@ -168,7 +168,7 @@ def str_to_bool(s):
elif s == 'False' or s == 'false':
return False
else:
- raise False
+ raise ValueError('Require [Tt]rue or [Ff]alse; got: {0}'.format(s))
def get_config_json(config_json, config_path, config_opt_f, config_file_nm):