Fix issues if one is disabled

This commit is contained in:
Joshua Boniface 2024-11-15 11:53:26 -05:00
parent b525bbe81d
commit ba4349d289
1 changed files with 3 additions and 3 deletions

View File

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