Skip to content

Commit

Permalink
Reverse test for override
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jackson committed Jan 24, 2024
1 parent 9662ac1 commit 7bcadb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/plugins/modules/vault_load_parsed_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def inject_field(
for prefix in prefixes:
# if the override field is False and the secret attribute exists at the prefix then we just
# skip, as we do not want to overwrite the existing secret
if override and self._vault_secret_attr_exists(
if not override and self._vault_secret_attr_exists(
mount, prefix, secret_name, fieldname
):
continue
Expand Down

0 comments on commit 7bcadb0

Please sign in to comment.