Add ability to check for environment variable options
This commit is contained in:
parent
fb67f5a94c
commit
5ce0447c53
2 changed files with 89 additions and 40 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue