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
|
@ -31,7 +31,7 @@ files = {
|
|||
'content_type': 'mako',
|
||||
'mode': '0700',
|
||||
'context': {
|
||||
'data': node.metadata.get('apt', {}).get('unattended-upgrades', {}),
|
||||
'data': node.metadata.get('apt/unattended-upgrades', {}),
|
||||
}
|
||||
},
|
||||
'/etc/cloud': {
|
||||
|
@ -132,7 +132,7 @@ pkg_apt = {
|
|||
}
|
||||
|
||||
|
||||
for name, data in node.metadata.get('apt', {}).get('repos', {}).items():
|
||||
for name, data in node.metadata.get('apt/repos', {}).items():
|
||||
files['/etc/apt/sources.list.d/{}.list'.format(name)] = {
|
||||
'content_type': 'mako',
|
||||
'content': ("\n".join(sorted(data['items']))).format(
|
||||
|
@ -156,6 +156,6 @@ for name, data in node.metadata.get('apt', {}).get('repos', {}).items():
|
|||
},
|
||||
}
|
||||
|
||||
if node.metadata.get('apt', {}).get('packages', {}):
|
||||
if node.metadata.get('apt/packages', {}):
|
||||
for package, options in node.metadata['apt']['packages'].items():
|
||||
pkg_apt[package] = options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue