Run NetworkConfig if never run previously

Update the condition to test if NetworkConfig should be run to also
include logic to run if it was never run previously. Matches prior
behavior when using a SoftwareDeployment resource

Change-Id: Ibd2c7d96a6ad8d207cbb484b7e211909f897e43f
This commit is contained in:
James Slagle 2019-06-28 10:24:15 -04:00
parent a766106574
commit 02fe40cd8b

View File

@ -599,11 +599,13 @@ outputs:
# - If the stack_action is CREATE
# - Or UPDATE is in the network_deployment_actions
# - Or the previous run of NetworkConfig failed.
# - Or it has never run
# This will match the prior behavior of when a Heat
# SoftwareDeployment was used.
when: (stack_action == "CREATE") or ("UPDATE" in network_deployment_actions) or
(os_net_config_returncode_stat.stat.exists and
((os_net_config_returncode_slurp.content | b64decode) != 0))
((os_net_config_returncode_slurp.content | b64decode) != 0)) or
(not os_net_config_returncode_stat.stat.exists)
- name: AllNodesValidationConfig
script: all_nodes_validation_script.sh