str2bool is not only useful in backup_xva, make it avail. elsewhere.
This commit is contained in:
@@ -280,6 +280,11 @@ def monitor_stdout(aprocess, onoutputdata,context):
|
||||
return "\n".join(stdout)
|
||||
|
||||
|
||||
def str2bool(val):
|
||||
if type(val) != bool:
|
||||
return val.lower() in ("yes", "true", "t", "1")
|
||||
|
||||
|
||||
class BackupStat:
|
||||
dbpath = ''
|
||||
db = None
|
||||
|
||||
Reference in New Issue
Block a user