From 55d89698a3387684654735f992e43262243dbdf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 28 Sep 2014 03:13:15 +0200 Subject: [PATCH] backups: minor fixes --- core/backup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/backup.py b/core/backup.py index 7a3f92eb..922efe06 100644 --- a/core/backup.py +++ b/core/backup.py @@ -1615,11 +1615,13 @@ def restore_info_verify(restore_info, host_collection): return restore_info -def backup_restore_prepare(backup_location, passphrase, options = {}, +def backup_restore_prepare(backup_location, passphrase, options = None, host_collection = None, encrypted=False, appvm=None, compressed = False, print_callback = print_stdout, error_callback = print_stderr, format_version=None, hmac_algorithm=DEFAULT_HMAC_ALGORITHM, crypto_algorithm=DEFAULT_CRYPTO_ALGORITHM): + if options is None: + options = {} # Defaults backup_restore_set_defaults(options) # Options introduced in backup format 3+, which always have a header,