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
|
@ -30,7 +30,7 @@ files = {
|
|||
},
|
||||
'/etc/zfs-snapshot-config.json': {
|
||||
'content': dumps(
|
||||
node.metadata.get('zfs', {}).get('snapshots', {}),
|
||||
node.metadata.get('zfs/snapshots', {}),
|
||||
cls=MetadataJSONEncoder, # turns sets into sorted lists
|
||||
indent=4,
|
||||
sort_keys=True,
|
||||
|
@ -72,10 +72,10 @@ svc_systemd = {
|
|||
},
|
||||
}
|
||||
|
||||
zfs_datasets = node.metadata.get('zfs', {}).get('datasets', {})
|
||||
zfs_datasets = node.metadata.get('zfs/datasets', {})
|
||||
zfs_pools = {}
|
||||
|
||||
for name, attrs in node.metadata.get('zfs', {}).get('pools', {}).items():
|
||||
for name, attrs in node.metadata.get('zfs/pools', {}).items():
|
||||
zfs_pools[name] = attrs
|
||||
|
||||
# Not yet supported on debian buster
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue