From: Tony Mack Date: Mon, 20 Jun 2011 18:15:07 +0000 (-0400) Subject: str2bool() no logger accepts 'yes' as True X-Git-Tag: sfa-1.0-28~22 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f88768144de1bb402f19a8b4c09e1f9fa005fb57;p=sfa.git str2bool() no logger accepts 'yes' as True --- diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py index 9b8d8f7e..2f38c38a 100644 --- a/sfa/trust/credential.py +++ b/sfa/trust/credential.py @@ -81,7 +81,7 @@ signature_template = \ # Convert a string into a bool def str2bool(str): - if str.lower() in ['yes','true','1']: + if str.lower() in ['true','1']: return True return False