From ba4349d28999d3e086436ef2d00aaf87a06c07f9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 15 Nov 2024 11:53:26 -0500 Subject: [PATCH] Fix issues if one is disabled --- daemon-common/vm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index cc729912..fee966a2 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -3446,9 +3446,9 @@ def vm_worker_send_snapshot( new_tags = list() for tag in vm_detail["tags"]: tag_base = tag["name"].split(":")[0] - if tag_base in [t for t in autobackup_config["backup_tags"]] or tag_base in [ - t for t in automirror_config["mirror_tags"] - ]: + if tag_base in [ + t for t in autobackup_config.get("backup_tags", []) + ] or tag_base in [t for t in automirror_config.get("mirror_tags", [])]: continue new_tags.append(tag) vm_detail["tags"] = new_tags