bundles: use metastack syntax for metadata.get()
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
4be912ac31
commit
b06532241b
38 changed files with 58 additions and 58 deletions
|
@ -2,7 +2,7 @@ def test_node(repo, node, **kwargs):
|
|||
if not node.has_bundle('backup-client'):
|
||||
return
|
||||
|
||||
if node.metadata.get('backups', {}).get('exclude_from_backups', False):
|
||||
if node.metadata.get('backups/exclude_from_backups', False):
|
||||
return
|
||||
|
||||
assert len(node.metadata.get('backups', {}).get('paths', set())) > 0, f'{node.name} has backups configured, but no backup paths defined!'
|
||||
assert len(node.metadata.get('backups/paths', set())) > 0, f'{node.name} has backups configured, but no backup paths defined!'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue