backup: remove unused argument from backup_prepare
This commit is contained in:
parent
e7701d9c5d
commit
61b3a81e82
@ -777,7 +777,7 @@ def file_to_backup (file_path, sz = None):
|
||||
assert dir == abs_base_dir
|
||||
return [ { "path" : file_path, "size": sz, "subdir": subdir} ]
|
||||
|
||||
def backup_prepare(base_backup_dir, vms_list = None, exclude_list = [], print_callback = print_stdout):
|
||||
def backup_prepare(vms_list = None, exclude_list = [], print_callback = print_stdout):
|
||||
"""If vms = None, include all (sensible) VMs; exclude_list is always applied"""
|
||||
files_to_backup = file_to_backup (system_path["qubes_store_filename"])
|
||||
|
||||
|
@ -70,7 +70,7 @@ def main():
|
||||
|
||||
files_to_backup = None
|
||||
try:
|
||||
files_to_backup = backup_prepare(base_backup_dir, vms_list=vms, exclude_list=options.exclude_list)
|
||||
files_to_backup = backup_prepare(vms_list=vms, exclude_list=options.exclude_list)
|
||||
except QubesException as e:
|
||||
print >>sys.stderr, "ERROR: %s" % str(e)
|
||||
exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user