No cloud_name_$NET_NAME for disabled networks

The cloud_name_{{network.name_lower}} parameter should
not be added for networks that are disabled in network
data.

When disabling networks adding the parameter causes
an not assigned error.

NOTE: This is a stein only change. In master this problem
      was fixed in: https://review.opendev.org/666447

Related-Bug: #1842001
Change-Id: I9660b37f814673a27d2c3928a72be082e11f6adc
This commit is contained in:
Harald Jensås 2019-08-30 00:11:26 +02:00
parent 9b1dc24b36
commit 231372441c

View File

@ -6,7 +6,7 @@ heat_template_version: rocky
description: 'All Nodes Config for Puppet'
parameters:
{%- for network in networks if network.vip|default(false) %}
{%- for network in networks if network.vip|default(false) and network.enabled|default(true) %}
cloud_name_{{network.name_lower}}:
type: string
{%- endfor %}