Ability to remove credentials owned by a user

This commit is contained in:
Konstantin Kuminsky 2024-11-20 19:49:55 -05:00 committed by Pablo H.
parent 7676f14114
commit 1d57f1c355

View File

@ -257,6 +257,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})