Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-pimenta-DME committed Dec 21, 2023
1 parent c8bb5b9 commit 7b35dd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions identityutils/keycloak_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ def create_client(self, payload, skip_exists=True):

def create_group(self, id, name, skip_exists=True):
payload = {
id: id,
name: name
"id": id,
"name": name
}
return self.keycloak_admin.create_group(payload=payload, skip_exists=skip_exists)

Expand Down Expand Up @@ -620,4 +620,4 @@ def get_rpt(self, client_id, client_secret, uri, token, ticket):
connection.add_param_headers("Content-Type", "application/x-www-form-urlencoded")
connection.add_param_headers("Authorization", "Bearer " + token)
data = connection.raw_post(urls_patterns.URL_TOKEN.format(**params_path), data=payload)
return raise_error_from_response(data, KeycloakPostError)
return raise_error_from_response(data, KeycloakPostError)

0 comments on commit 7b35dd3

Please sign in to comment.