Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/792033 Committed: https://opendev.org/openstack/tripleo-ansible/commit/2979a005c949b09259d0099580fe3e8a3faebaf9 Submitter: "Zuul (22348)" Branch: stable/train
commit 2979a005c949b09259d0099580fe3e8a3faebaf9 Author: Harald Jensås <email address hidden> Date: Wed Mar 10 05:27:52 2021 +0100
Fix tripleo_network config conditional
The conditional used in the NetworkConfig block always evaluates to conclude that network config should be applied.
Use | int filter on the slurped os-net-config return code file so that the condition does not always evaluate to False.
Conflicts: tripleo_ansible/roles/tripleo_network_config/molecule/default/molecule.yml tripleo_ansible/roles/tripleo_network_config/molecule/default/prepare.yml tripleo_ansible/roles/tripleo_network_config/molecule/default/converge.yml
The original patch also fixed molecule tests, this part has been removed in the cherry-pick.
Closes-Bug: #1918372 Change-Id: Ia4d663cd298556c8143eab6e799e68c81bc8235e (cherry picked from commit c2aeccc01c76afa53e759fd51ed7d50eb987fd08)
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- ansible/ +/792033 /opendev. org/openstack/ tripleo- ansible/ commit/ 2979a005c949b09 259d0099580fe3e 8a3faebaf9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 2979a005c949b09 259d0099580fe3e 8a3faebaf9
Author: Harald Jensås <email address hidden>
Date: Wed Mar 10 05:27:52 2021 +0100
Fix tripleo_network config conditional
The conditional used in the NetworkConfig block always
evaluates to conclude that network config should be
applied.
Use | int filter on the slurped os-net-config return
code file so that the condition does not always evaluate
to False.
Conflicts: ansible/ roles/tripleo_ network_ config/ molecule/ default/ molecule. yml ansible/ roles/tripleo_ network_ config/ molecule/ default/ prepare. yml ansible/ roles/tripleo_ network_ config/ molecule/ default/ converge. yml
tripleo_
tripleo_
tripleo_
The original patch also fixed molecule tests, this part has been removed
in the cherry-pick.
Closes-Bug: #1918372 c8143eab6e799e6 8c81bc8235e 53e759fd51ed7d5 0eb987fd08)
Change-Id: Ia4d663cd298556
(cherry picked from commit c2aeccc01c76afa