summaryrefslogtreecommitdiffstats
path: root/helm/plugin/tasks.py
diff options
context:
space:
mode:
authorjh245g <jh245g@att.com>2018-08-06 14:30:01 -0400
committerjh245g <jh245g@att.com>2018-08-06 14:30:01 -0400
commite76d177a713b10a92525f09dbd3199a090d14d8f (patch)
treec3de4fe7bff3178c9a1f3896b9a01cde39777bd5 /helm/plugin/tasks.py
parent7ea7c4c8d4f368d831fc145684661594f4f6561c (diff)
Fix bug in basic authentication
Change-Id: If3f8231b5a3330009379d6d20d47f0be895ecdc8 Issue-ID: CCSDK-425 Signed-off-by: jh245g <jh245g@att.com>
Diffstat (limited to 'helm/plugin/tasks.py')
-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 5ff7df8..4ffcd81 100644
--- a/helm/plugin/tasks.py
+++ b/helm/plugin/tasks.py
@@ -220,7 +220,7 @@ def config(**kwargs):
if configJson == '' and configUrl == '':
ctx.logger.debug("Will use default HELM value")
elif configJson == '' and configUrl != '':
- if configUrl.find("@"):
+ if configUrl.find("@") != -1:
head, end = configUrl.rsplit('@', 1)
head, auth = head.rsplit('//', 1)
configUrl = head + '//' + end