Fix: genesis.sh and join.sh rendering fix

Fixes a rendering issue with the previous HostSystem schema change when
common packages are omitted.

https://review.opendev.org/#/c/699162/

Change-Id: I629c652be1575351c8b33b141467f2839badc112
This commit is contained in:
Phil Sphicas 2019-12-18 08:39:23 -08:00
parent 04ddbcd2a4
commit 1a1c69c064
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ done
while true; do
if ! DEBIAN_FRONTEND=noninteractive apt-get install -o Dpkg::Options::="--force-confold" -y --no-install-recommends \
{%- for role in roles %}
{%- for package in config['HostSystem:packages.' + role + '.required'].values() | default([]) %}
{%- for package in config.get_path('HostSystem:packages.' + role + '.required',{}).values() %}
{{ package }} \
{%- endfor %}
{%- for package in config['HostSystem:packages.' + role + '.additional'] | default([]) %}
{%- for package in config.get_path('HostSystem:packages.' + role + '.additional',[]) %}
{{ package }} \
{%- endfor %}
{%- endfor %}