Ability to remove credentials owned by a user

This commit is contained in:
Konstantin Kuminsky
2025-04-02 16:48:27 +02:00
committed by Pablo H.
parent 7676f14114
commit 1d57f1c355
@@ -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})