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
|
@ -60,7 +60,7 @@ if node.metadata['nginx']['use_ssl_for_all_connections']:
|
|||
},
|
||||
}
|
||||
|
||||
for vhost, config in node.metadata.get('nginx', {}).get('vhosts', {}).items():
|
||||
for vhost, config in node.metadata.get('nginx/vhosts', {}).items():
|
||||
if not 'domain' in config:
|
||||
config['domain'] = vhost
|
||||
|
||||
|
@ -69,7 +69,7 @@ for vhost, config in node.metadata.get('nginx', {}).get('vhosts', {}).items():
|
|||
'content_type': 'mako',
|
||||
'context': {
|
||||
'vhost': vhost,
|
||||
'php_version': node.metadata.get('php', {}).get('version', ''),
|
||||
'php_version': node.metadata.get('php/version', ''),
|
||||
**config,
|
||||
},
|
||||
'needs': set(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue