Fix the Network Gateway Validation
The network gateway validation currently breaks if the undercloud.conf file doesn't exist, due to the missing ``network_gateway`` value. The validation uses the ignore_missing flag on the undercloud conf reader, but fails to set its own default for the network gateway value. This patch adds this default value. Closes-Bug: #1732468 Change-Id: I47710721323a36616b42455206f779b6f7dda60d
This commit is contained in:
parent
bcbc953aa2
commit
7de584bfe5
|
@ -18,7 +18,7 @@
|
|||
undercloud_conf_path={{ tripleo_undercloud_conf_file }}
|
||||
ignore_missing=true
|
||||
- name: "Test network_gateway if different from local_ip"
|
||||
icmp_ping: host={{ undercloud_conf.DEFAULT.network_gateway }}
|
||||
icmp_ping: host="{{ undercloud_conf.DEFAULT.network_gateway | default('0.0.0.0') }}"
|
||||
when: >
|
||||
"undercloud_conf.DEFAULT.local_ip | default('0.0.0.0') | ipaddr('address')"
|
||||
!=
|
||||
|
|
Loading…
Reference in New Issue