Added missing "y" possibility to str2bool 98/28798/2
authorJozef Behran <jbehran@cisco.com>
Mon, 26 Oct 2015 12:05:56 +0000 (13:05 +0100)
committerGerrit 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

index b023a957684e02e2205e732f214f7c713d871e72..a126ffe7c460452b26dc38bd25f6166c5e0674ed 100644 (file)
@@ -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.