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
|
@ -73,7 +73,7 @@ for interface, config in node.metadata['interfaces'].items():
|
|||
},
|
||||
}
|
||||
|
||||
for bond, config in node.metadata.get('systemd-networkd', {}).get('bonds', {}).items():
|
||||
for bond, config in node.metadata.get('systemd-networkd/bonds', {}).items():
|
||||
files['/etc/systemd/network/20-bond-{}.netdev'.format(bond)] = {
|
||||
'source': 'template-bond.netdev',
|
||||
'content_type': 'mako',
|
||||
|
@ -104,7 +104,7 @@ for bond, config in node.metadata.get('systemd-networkd', {}).get('bonds', {}).i
|
|||
},
|
||||
}
|
||||
|
||||
for brname, config in node.metadata.get('systemd-networkd', {}).get('bridges', {}).items():
|
||||
for brname, config in node.metadata.get('systemd-networkd/bridges', {}).items():
|
||||
files['/etc/systemd/network/30-bridge-{}.netdev'.format(brname)] = {
|
||||
'source': 'template-bridge.netdev',
|
||||
'content_type': 'mako',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue