Revision 2be50766 snf-django-lib/snf_django/management/utils.py

b/snf-django-lib/snf_django/management/utils.py
49 49
    converted to boolean. Otherwise the string will be returned as is.
50 50

  
51 51
    """
52
    if isinstance(value, bool):
53
        return value
54

  
52 55
    if value.lower() in ("yes", "true", "t", "1"):
53 56
        return True
54 57
    if value.lower() in ("no", "false", "f", "0"):

Also available in: Unified diff