1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update plugins/module_utils/identity/keycloak/keycloak.py

Co-authored-by: Mark Armstrong <markparmstrong@gmail.com>
This commit is contained in:
Maximilian Pohle 2024-09-13 13:45:24 +02:00 committed by GitHub
parent 45154faab7
commit 836dc7989e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3066,7 +3066,7 @@ class KeycloakAPI(object):
return open_url(url, method='PUT', http_agent=self.http_agent, headers=self.restheaders, timeout=self.connection_timeout,
data=json.dumps(payload), validate_certs=self.validate_certs)
except Exception as e:
self.fail_open_url(e, msg='Could not create update permission %s for client %s in realm %s: %s' % (payload['name'], client_id, realm, str(e)))
self.fail_open_url(e, msg='Could not create update resource %s for client %s in realm %s: %s' % (payload['name'], client_id, realm, str(e)))
def get_authz_policy_by_name(self, name, client_id, realm):
"""Get authorization policy by name"""