From 673a0e58ec432f7995c79b11ebaa7eb1b522986a Mon Sep 17 00:00:00 2001 From: pappapisshu <39009553+pappapisshu@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:59:40 +0100 Subject: [PATCH] A direct reference to custom.yaml filename is removed. --- management/backup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/management/backup.py b/management/backup.py index 15993ab2..f145d2ec 100755 --- a/management/backup.py +++ b/management/backup.py @@ -631,7 +631,6 @@ def set_b2_backup_config(env, min_age_in_days, target_url): return "OK" def get_backup_config(env): - backup_root = get_backup_root_directory(env) # Defaults. config = { @@ -641,7 +640,7 @@ def get_backup_config(env): # Merge in anything written to custom.yaml. try: - with open(os.path.join(backup_root, 'custom.yaml'), 'r') as f: + with open(get_backup_configuration_file(env), 'r') as f: custom_config = rtyaml.load(f) if not isinstance(custom_config, dict): raise ValueError() # caught below