From 9832cbf5f2d05c56901a34938308a63978bb5250 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 11 Nov 2024 18:15:14 +0100 Subject: [PATCH] . --- workbench-script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workbench-script.py b/workbench-script.py index b16c6ed..f57a9a9 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -407,7 +407,7 @@ def load_config(config_file="settings.ini"): else: logger.error(_("Config file '%s' not found. Using default values."), config_file) path = os.path.join(os.getcwd()) - url, token, device, erase, legacy = None, None, None, None, None + url, token, device, erase, legacy, url_wallet, wb_sign_token = None, None, None, None, None, None, None return { 'path': path, @@ -500,6 +500,8 @@ def main(): if url_wallet and wb_sign_token: snapshot = send_to_sign_credential(snapshot, wb_sign_token, url_wallet) + else: + snapshot = json.dumps(snapshot) save_snapshot_in_disk(snapshot, config['path'], snap_uuid)