The import of netaddr any yaml is done within a try/except block. If an
ImportError occurs an error message is printed and the script ignores
it. Ansible does not display the printed message and the script will
still fail, just later on.
This commit removes the exception handling so that if there is an
ImportError the script will fail straight away.
Change-Id: Iff935db62bde954ac4ff0b920409c18dd494bdff
Closes-Bug: #1420312
(cherry picked from commit de32ddca574150806c4dbb9a47930b0b6d1196f0)
Reviewed: https:/ /review. openstack. org/156628 /git.openstack. org/cgit/ stackforge/ os-ansible- deployment/ commit/ ?id=8513dd167e5 100ace741900c1e 191511ecf5954d
Committed: https:/
Submitter: Jenkins
Branch: juno
commit 8513dd167e5100a ce741900c1e1915 11ecf5954d
Author: git-harry <email address hidden>
Date: Tue Feb 10 14:33:14 2015 +0000
Remove ImportError handling in dynamic_inventory
The import of netaddr any yaml is done within a try/except block. If an
ImportError occurs an error message is printed and the script ignores
it. Ansible does not display the printed message and the script will
still fail, just later on.
This commit removes the exception handling so that if there is an
ImportError the script will fail straight away.
Change-Id: Iff935db62bde95 4ac4ff0b920409c 18dd494bdff 06c4dbb9a47930b 0b6d1196f0)
Closes-Bug: #1420312
(cherry picked from commit de32ddca5741508