kolla-ansible/kolla_ansible/cmd
Marcin Juszkiewicz 333c74feb4 genpwd: handle lack of password file nicer
From:

(kolla) 13:11 (s) marcin@puchatek:kolla-ansible$ kolla-genpwd
Traceback (most recent call last):
  File "/home/marcin/.virtualenvs/kolla/bin/kolla-genpwd", line 8, in <module>
    sys.exit(main())
  File "/home/marcin/.virtualenvs/kolla/lib/python3.10/site-packages/kolla_ansible/cmd/genpwd.py", line 135, in main
    genpwd(passwords_file, length, uuid_keys, ssh_keys, blank_keys,
  File "/home/marcin/.virtualenvs/kolla/lib/python3.10/site-packages/kolla_ansible/cmd/genpwd.py", line 59, in genpwd
    with open(passwords_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/kolla/passwords.yml'

To:

(kolla) 13:17 (s) marcin@puchatek:kolla-ansible$ kolla-genpwd
ERROR: Passwords file "/etc/kolla/passwords.yml" is missing

Change-Id: I18a9559daeb3d124a03dcb735ebb01a2cf24f617
2022-05-24 13:18:20 +02:00
..
__init__.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00
genpwd.py genpwd: handle lack of password file nicer 2022-05-24 13:18:20 +02:00
mergepwd.py Improve error reporting in password utilities 2020-05-22 19:20:47 +01:00
readpwd.py Support storing passwords in Hashicorp Vault 2021-06-30 15:16:12 +01:00
writepwd.py Support storing passwords in Hashicorp Vault 2021-06-30 15:16:12 +01:00