Skip to content

Commit

Permalink
Merge pull request #472 from phihos/471
Browse files Browse the repository at this point in the history
Fix hashivault_k8s_auth_role not detecting policy changes
  • Loading branch information
TerryHowe authored Mar 6, 2024
2 parents f1d30f1 + 687027b commit 293e62f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/modules/hashivault/hashivault_k8s_auth_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def hashivault_k8s_auth_role(module):
current_state['max_ttl'] = current_state['token_max_ttl']
if 'period' not in current_state and 'token_period' in current_state:
current_state['period'] = current_state['token_period']
if 'policies' not in current_state and 'token_policies' in current_state:
current_state['policies'] = current_state['token_policies']
for key in desired_state.keys():
if key in current_state and desired_state[key] != current_state[key]:
changed = True
Expand Down

0 comments on commit 293e62f

Please sign in to comment.