Add ability to check for environment variable options

This commit is contained in:
Nicholas St. Germain 2019-06-18 15:20:25 -05:00
parent fb67f5a94c
commit 5ce0447c53
2 changed files with 89 additions and 40 deletions

View file

@ -196,3 +196,10 @@ def clean_sid_check(server_id_list, server_type=None):
else:
logger.error('No valid %s', t.upper())
return False
def boolcheck(var):
if var.lower() in ['true', 'yes']:
return True
else:
return False