mirror of
https://github.com/optim-enterprises-bv/openstack-helm.git
synced 2025-12-25 09:17:18 +00:00
Merge "Skip cred-key setup when keys already exist"
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user