Reviewed: https://review.openstack.org/495965 Committed: https://git.openstack.org/cgit/openstack/tripleo-validations/commit/?id=8a2022e8a567e1707049fc22f20eec6fe245d42e Submitter: Jenkins Branch: master
commit 8a2022e8a567e1707049fc22f20eec6fe245d42e Author: Michele Baldessari <email address hidden> Date: Mon Aug 21 21:14:00 2017 +0200
Do not output empty variables in inventory
Currently tripleo-ansible-inventory --static can create an invalid inventory file: The offending line appears to be: [undercloud] localhost ^ here
Attempted to read "/home/stack/validations_static_inventory" as ini file: /home/stack/validations_static_inventory:11: Expected key=value, got: cacert
The broken snippet can be: ... ansible_connection = local cacert undercloud_swift_url = https://192.168.24.2:13808/v1/AUTH_ab355edddba843deafef01bf520e8648 ...
We need to make sure that keys that have a 'None' dictionary do not break the inventory file.
Change-Id: I009c7b52a4d1dabc3ceaad14a828f90ff3845b94 Closes-Bug: #1701239
Reviewed: https:/ /review. openstack. org/495965 /git.openstack. org/cgit/ openstack/ tripleo- validations/ commit/ ?id=8a2022e8a56 7e1707049fc22f2 0eec6fe245d42e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8a2022e8a567e17 07049fc22f20eec 6fe245d42e
Author: Michele Baldessari <email address hidden>
Date: Mon Aug 21 21:14:00 2017 +0200
Do not output empty variables in inventory
Currently tripleo- ansible- inventory --static can create an invalid
inventory file:
The offending line appears to be:
[undercloud]
localhost
^ here
Attempted to read "/home/ stack/validatio ns_static_ inventory" as ini file: /home/stack/ validations_ static_ inventory: 11: Expected key=value, got: cacert
The broken snippet can be: connection = local swift_url = https:/ /192.168. 24.2:13808/ v1/AUTH_ ab355edddba843d eafef01bf520e86 48
...
ansible_
cacert
undercloud_
...
We need to make sure that keys that have a 'None' dictionary do not
break the inventory file.
Change-Id: I009c7b52a4d1da bc3ceaad14a828f 90ff3845b94
Closes-Bug: #1701239