backup: remove unused argument from backup_prepare

This commit is contained in:
Marek Marczykowski-Górecki 2013-11-24 03:17:15 +01:00
parent e7701d9c5d
commit 61b3a81e82
2 changed files with 2 additions and 2 deletions

View File

@ -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"])

View File

@ -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)