mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-08-26 09:49:24 +03:00
Changed the condition for the perception of the str2bool
This commit is contained in:
@ -41,7 +41,7 @@ def remove_dir_tree(path, delete_files=False, delete_folder=False, delete_sub_fo
|
||||
|
||||
|
||||
def str2bool(boolstr):
|
||||
if boolstr.lower() in ['true', 'yes', '1']:
|
||||
if boolstr and boolstr.lower() in ['true', 'yes', '1']:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user