Add swift_hash_path to pw-token-gen.py

* Set swift_hash_path vars to be setup as keys
* Allows these vars to be auto generated

Fixes #611
This commit is contained in:
Andy McCrae 2014-11-24 16:42:29 +00:00
parent 757b4701ea
commit 3a08d86dc2

View File

@ -170,6 +170,9 @@ def main():
elif entry.endswith('key'):
changed = True
user_vars[entry] = generator.generator(pw_type='key')
elif entry.startswith('swift_hash_path'):
changed = True
user_vars[entry] = generator.generator(pw_type='key')
# If changed is set to True, this will archive the old passwords
if changed is True: