mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-09 06:25:59 +08:00
CLI: task_type might be undefined
This commit is contained in:
parent
cc46660c58
commit
df4ce32065
1 changed files with 3 additions and 1 deletions
|
@ -503,8 +503,10 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
):
|
||||
if args.create_backup_scheduled_task:
|
||||
task_type = "backup"
|
||||
if args.create_housekeeping_scheduled_task:
|
||||
elif args.create_housekeeping_scheduled_task:
|
||||
task_type = "housekeeping"
|
||||
else:
|
||||
task_type = None
|
||||
hours, minutes = args.create_scheduled_task.split(",")
|
||||
hour = hours.split("=")[1].strip()
|
||||
minute = minutes.split("=")[1].strip()
|
||||
|
|
Loading…
Add table
Reference in a new issue