bundles/backup-server: ignore all nodes which don't have bundle:backup-client

This commit is contained in:
Franzi 2021-01-16 22:12:49 +01:00
parent 9f0fc90679
commit ec8802dd4a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -14,7 +14,7 @@ def get_my_clients(metadata):
my_clients = {} my_clients = {}
for rnode in repo.nodes: for rnode in repo.nodes:
if rnode.metadata.get('backups/exclude_from_backups', False) or rnode.dummy: if not rnode.has_bundle('backup-client'):
continue continue
my_clients[rnode.name] = { my_clients[rnode.name] = {