commit d8b05f4c1a81609451f49a76c3e29d9d15a21f76
Author: Mark Goddard <email address hidden>
Date: Fri May 22 19:16:02 2020 +0100
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 620b808cf366596d7cdd521cd5b44a973d5cdeab)
Reviewed: https:/ /review. opendev. org/737969 /git.openstack. org/cgit/ openstack/ kolla-ansible/ commit/ ?id=d8b05f4c1a8 1609451f49a76c3 e29d9d15a21f76
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit d8b05f4c1a81609 451f49a76c3e29d 9d15a21f76
Author: Mark Goddard <email address hidden>
Date: Fri May 22 19:16:02 2020 +0100
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:
For kolla-mergepwd:
This change adds a more friendly message.
Change-Id: I27f0835b904e05 006ae401adf3830 90322e1b891 d7cdd521cd5b44a 973d5cdeab)
Closes-Bug: #1880220
(cherry picked from commit 620b808cf366596