From 41127eb1c9b555b989ef64220bce2a9517904153 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 12 Jun 2019 10:23:46 +1000 Subject: [PATCH] linters: ensure openstack/inventory.yaml parses This runs openstack/inventory.yaml through a basic syntax check. This would have caught a typo such as in I0e55d2c575427e404709e78d0c7a10a974117ac4 (fixed I834411ef2dee458ae15fb99a3c88b6d2fee4cf1e) Change-Id: I4cbf9898d598aeeef1583ab22ceb9d0cdf081064 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 0f010c9df3..2f7ba31934 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,9 @@ commands = python3 {toxinidir}/tools/sorted_modules_env.py {toxinidir}/modules.env python3 {toxinidir}/tools/irc_checks.py python3 {toxinidir}/tools/check_clouds_yaml.py + # The following command validates that inventory/openstack.yaml + # parses, but doesn't do anything. + bash -c "ANSIBLE_INVENTORY_PLUGINS=./playbooks/roles/install-ansible/files/inventory_plugins ansible -i ./inventory/openstack.yaml not_a_host -a 'true'" python3 -m unittest playbooks/roles/install-ansible/files/inventory_plugins/test_yamlgroup.py # Ansible Lint Check #