Merge "Do no recreate fernet tokens on setup"
This commit is contained in:
@@ -150,9 +150,9 @@ def main():
|
|||||||
FERNET_DIR)
|
FERNET_DIR)
|
||||||
write_to_files(secret['data'])
|
write_to_files(secret['data'])
|
||||||
|
|
||||||
if args.command == 'credential_setup':
|
if args.command in ('credential_setup', 'fernet_setup'):
|
||||||
if secret.get('data', False):
|
if secret.get('data', False):
|
||||||
LOG.info('Credential keys already exist, skipping setup...')
|
LOG.info('Keys already exist, skipping setup...')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
execute_command(args.command)
|
execute_command(args.command)
|
||||||
|
|||||||
Reference in New Issue
Block a user