Skip to content

Commit

Permalink
Bugfix: check for destroy is false, when versions is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Kloppi313 committed Aug 16, 2024
1 parent 503565c commit 4386474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/vault_kv2_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def run_module():
# and delete specific versions.
if module.check_mode:
response = {}
elif not versions:
elif not versions and not destroy:
response = client.secrets.kv.v2.delete_latest_version_of_secret(
path=path, mount_point=engine_mount_point)
elif versions and destroy:
Expand Down

0 comments on commit 4386474

Please sign in to comment.