Comment 4 for bug 1701239

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (master)

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