diff --git a/README.md b/README.md index 55474ed..d9ebd81 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ All Keycloak administration modules from `community.general` are provided in thi * `keycloak_client_rolemapping`: manage client role mappings for users and groups. * `keycloak_client_rolescope`: manage client role scope mappings. * `keycloak_client_scope`: manage client scopes and protocol mappers (replaces `community.general.keycloak_clientscope`). -* `keycloak_client_scopeee_type`: manage default and optional client scope assignments. +* `keycloak_client_scope_type`: manage default and optional client scope assignments. * `keycloak_clientsecret_info`: retrieve client secret information. * `keycloak_clientsecret_regenerate`: regenerate a client secret. * `keycloak_clienttemplate`: manage legacy client templates. diff --git a/plugins/module_utils/identity/keycloak/keycloak.py b/plugins/module_utils/identity/keycloak/keycloak.py index 1c24736..a4b7c1d 100644 --- a/plugins/module_utils/identity/keycloak/keycloak.py +++ b/plugins/module_utils/identity/keycloak/keycloak.py @@ -1417,7 +1417,7 @@ class KeycloakAPI: get_client_scope_by_client_scope_id, passing in the ID of the group you wish to return. :param cid: id of client scope (not name). - :param realm: Realm in which the client_scope resides; default 'master'. + :param realm: Realm in which the client scope resides; default 'master'. :return The protocolmappers of this realm (default "master") """ protocolmappers_url = URL_CLIENT_SCOPE_PROTOCOLMAPPERS.format(id=cid, url=self.baseurl, realm=realm) @@ -1634,7 +1634,7 @@ class KeycloakAPI: except Exception as e: place = "realm" if client_id is None else f"client {client_id}" - self.fail_request(e, msg=f"Unable to {action} {scope_type} client_scope {id} @ {place} : {e}") + self.fail_request(e, msg=f"Unable to {action} {scope_type} client scope {id} @ {place} : {e}") def create_clientsecret(self, id, realm: str = "master"): """Generate a new client secret by id diff --git a/plugins/modules/keycloak_client_scope_type.py b/plugins/modules/keycloak_client_scope_type.py index d069c28..f8040d0 100644 --- a/plugins/modules/keycloak_client_scope_type.py +++ b/plugins/modules/keycloak_client_scope_type.py @@ -271,7 +271,7 @@ def main(): if module._diff: result["diff"] = dict(before=normalize_scopes(result["existing"]), after=normalize_scopes(result["proposed"])) - default_client_scopes_add = client_scopes_to_add(default_client_scopees_existing, defaultclient_scopees_real) + default_client_scopes_add = client_scopes_to_add(default_client_scopes_existing, default_client_scopes_real) optional_client_scopes_add = client_scopes_to_add(optional_client_scopes_existing, optional_client_scopes_real) default_client_scopes_delete = client_scopes_to_delete(default_client_scopes_existing, default_client_scopes_real)