hooks/test_backup_metadata: no need to check metadata if node does not have bundle:backup-client
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
1abc0153f5
commit
dba7beae1c
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
def test_node(repo, node, **kwargs):
|
||||
if not node.has_bundle('backup-client'):
|
||||
return
|
||||
|
||||
if node.metadata.get('backups', {}).get('exclude_from_backups', False):
|
||||
return
|
||||
|
||||
if node.dummy:
|
||||
return
|
||||
|
||||
assert len(node.metadata.get('backups', {}).get('paths', set())) > 0, f'{node.name} has backups configured, but no backup paths defined!'
|
||||
|
|
Loading…
Reference in a new issue