From 2211571689438f6395e0b589d770d451275f9abe Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Mon, 25 Sep 2023 16:59:03 +0200 Subject: [PATCH] exclude some dummies --- bundles/backup-freshness-check/metadata.py | 3 ++- bundles/backup-server/metadata.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/backup-freshness-check/metadata.py b/bundles/backup-freshness-check/metadata.py index e55b0d4..7ccf647 100644 --- a/bundles/backup-freshness-check/metadata.py +++ b/bundles/backup-freshness-check/metadata.py @@ -25,7 +25,8 @@ def backup_freshness_check(metadata): 'datasets': { f"{other_node.metadata.get('id')}/{dataset}" for other_node in repo.nodes - if other_node.has_bundle('backup') + if not other_node.dummy + and other_node.has_bundle('backup') and other_node.has_bundle('zfs') and other_node.metadata.get('backup/server') == metadata.get('backup-freshness-check/server') for dataset, options in other_node.metadata.get('zfs/datasets').items() diff --git a/bundles/backup-server/metadata.py b/bundles/backup-server/metadata.py index acef717..3ecd90d 100644 --- a/bundles/backup-server/metadata.py +++ b/bundles/backup-server/metadata.py @@ -35,6 +35,7 @@ def zfs(metadata): for other_node in repo.nodes: if ( + not other_node.dummy and other_node.has_bundle('backup') and other_node.metadata.get('backup/server') == node.name ):