Browse Source

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
changes/51/664751/1
Ian Wienand 1 year ago
parent
commit
41127eb1c9
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -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
#


Loading…
Cancel
Save