Skip to content

Commit

Permalink
Ability to remove credentials owned by a user
Browse files Browse the repository at this point in the history
  • Loading branch information
kk-at-redhat committed Nov 21, 2024
1 parent 3ba6e2e commit 62f1ef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions awx_collection/plugins/modules/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ def main():
copy_lookup_data = lookup_data
if organization:
lookup_data['organization'] = org_id
if user:
lookup_data['organization'] = None

credential = module.get_one('credentials', name_or_id=name, check_exists=(state == 'exists'), **{'data': lookup_data})

Expand Down

0 comments on commit 62f1ef9

Please sign in to comment.