Code Review
/
integration
/
test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0885d58
)
Added missing "y" possibility to str2bool
98/28798/2
author
Jozef Behran
<jbehran@cisco.com>
Mon, 26 Oct 2015 12:05:56 +0000
(13:05 +0100)
committer
Gerrit Code Review
<gerrit@opendaylight.org>
Mon, 26 Oct 2015 12:07:38 +0000
(12:07 +0000)
Change-Id: I65f940f744adb06ee1f9f07331bf9a6e3b460215
Signed-off-by: Jozef Behran <jbehran@cisco.com>
tools/pcep_updater/updater.py
patch
|
blob
|
history
diff --git
a/tools/pcep_updater/updater.py
b/tools/pcep_updater/updater.py
index b023a957684e02e2205e732f214f7c713d871e72..a126ffe7c460452b26dc38bd25f6166c5e0674ed 100644
(file)
--- a/
tools/pcep_updater/updater.py
+++ b/
tools/pcep_updater/updater.py
@@
-51,7
+51,7
@@
import AuthStandalone
def str2bool(text):
"""Utility converter, based on http://stackoverflow.com/a/19227287"""
- return text.lower() in ("yes", "true", "t", "1")
+ return text.lower() in ("yes", "true", "
y", "
t", "1")
# Note: JSON data contains '"', so using "'" to quote Pythons strings.