Merge "Skip cred-key setup when keys already exist"
This commit is contained in:
commit
ad01413629
@ -155,6 +155,11 @@ def main():
|
||||
FERNET_DIR)
|
||||
write_to_files(secret['data'])
|
||||
|
||||
if args.command == 'credential_setup':
|
||||
if secret.get('data', False):
|
||||
LOG.info('Credential keys already exist, skipping setup...')
|
||||
sys.exit(0)
|
||||
|
||||
execute_command(args.command)
|
||||
|
||||
LOG.info("Updating data for '%s' secret.", SECRET_NAME)
|
||||
|
Loading…
x
Reference in New Issue
Block a user