kolla-ansible/kolla_ansible
Mark Goddard d8b05f4c1a Improve error reporting in password utilities
The kolla-genpwd and kolla-mergepwd commands can be used to manipulate
the kolla passwords.yml file. The format is a YAML encoded dict of
password variable names to their values. If the format is not a dict,
the error messages are unhelpful.  In particular, this can happen if the
file is encrypted e.g. via Ansible Vault.

For kolla-genpwd:

    AttributeError: 'NoneType' object has no attribute 'items'

For kolla-mergepwd:

    AttributeError: 'NoneType' object has no attribute 'update'

This change adds a more friendly message.

Change-Id: I27f0835b904e05006ae401adf383090322e1b891
Closes-Bug: #1880220
(cherry picked from commit 620b808cf3)
2020-06-25 12:01:48 +01:00
..
cmd Improve error reporting in password utilities 2020-06-25 12:01:48 +01:00
tests Fix service_mapped_to_host filter 2020-03-21 08:38:55 +00:00
__init__.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00
exception.py Add custom filters for checking services 2019-09-16 12:48:52 +00:00
filters.py Fix service_mapped_to_host filter for common services 2020-04-17 09:09:36 +00:00
kolla_address.py Implement IPv6 support in the control plane 2019-10-16 10:24:35 +02:00
nova_filters.py Add unit tests for Nova Cells filters 2019-10-18 13:13:32 +00:00
put_address_in_context.py Implement IPv6 support in the control plane 2019-10-16 10:24:35 +02:00
version.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00