mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Ability to remove credentials owned by a user
This commit is contained in:
committed by
Pablo H.
parent
7676f14114
commit
1d57f1c355
@@ -257,6 +257,8 @@ def main():
|
|||||||
copy_lookup_data = lookup_data
|
copy_lookup_data = lookup_data
|
||||||
if organization:
|
if organization:
|
||||||
lookup_data['organization'] = org_id
|
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})
|
credential = module.get_one('credentials', name_or_id=name, check_exists=(state == 'exists'), **{'data': lookup_data})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user