Browse Source

Merge "Don't allow rotating keys if stack not found"

changes/59/785159/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
544eb31301
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tripleo_common/utils/plan.py

+ 2
- 1
tripleo_common/utils/plan.py View File

@ -120,7 +120,8 @@ def rotate_fernet_keys(heat,
stack_env = heat.stacks.environment(
stack_id=container)
except heat_exc.HTTPNotFound:
stack_env = None
raise RuntimeError('Can not rotate fernet keys without an'
'existing stack %s.' % container)
parameter_defaults = stack_env.get('parameter_defaults', {})
passwords = get_overriden_passwords({}, parameter_defaults)


Loading…
Cancel
Save