keycloak module utils replace missing return in `get_role_composites` (#9691)
* fix: replace missing return (#9678) * chore: add changelog fragment (#9678) * chore: update changelog fragment (#9678) Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>pull/9705/head
parent
10c15d31f7
commit
41caa9a22c
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- keycloak module utils - replaces missing return in get_role_composites method which caused it to return None instead of composite roles (https://github.com/ansible-collections/community.general/issues/9678, https://github.com/ansible-collections/community.general/pull/9691).
|
|
@ -1856,7 +1856,7 @@ class KeycloakAPI(object):
|
|||
else:
|
||||
composite_url = URL_REALM_ROLE_COMPOSITES.format(url=self.baseurl, realm=realm, name=quote(rolerep["name"], safe=''))
|
||||
# Get existing composites
|
||||
self._request_and_deserialize(composite_url, method='GET')
|
||||
return self._request_and_deserialize(composite_url, method='GET')
|
||||
except Exception as e:
|
||||
self.fail_request(e, msg='Could not get role %s composites in realm %s: %s'
|
||||
% (rolerep['name'], realm, str(e)))
|
||||
|
|
Loading…
Reference in New Issue