Merge "Do no recreate fernet tokens on setup"

This commit is contained in:
Zuul 2020-08-07 19:21:17 +00:00 committed by Gerrit Code Review
commit 4f1e1329ad

View File

@ -150,9 +150,9 @@ def main():
FERNET_DIR)
write_to_files(secret['data'])
if args.command == 'credential_setup':
if args.command in ('credential_setup', 'fernet_setup'):
if secret.get('data', False):
LOG.info('Credential keys already exist, skipping setup...')
LOG.info('Keys already exist, skipping setup...')
sys.exit(0)
execute_command(args.command)