diff --git a/openhexa/toolbox/iaso/api_client.py b/openhexa/toolbox/iaso/api_client.py index 17ecfbb..f35edeb 100644 --- a/openhexa/toolbox/iaso/api_client.py +++ b/openhexa/toolbox/iaso/api_client.py @@ -71,7 +71,7 @@ def request(self, method: str, url: str, *args, **kwargs) -> requests.Response: def authenticate(self) -> None: """ - Authenticates with OpenHexa API with username and password. + Authenticates with IASO API with username and password. Calling the endpoints to fetch authorization and refresh token. Ensures that failures are handles with status management, both with or without SSL communication """ diff --git a/openhexa/toolbox/iaso/iaso.py b/openhexa/toolbox/iaso/iaso.py index c27a656..3bff007 100644 --- a/openhexa/toolbox/iaso/iaso.py +++ b/openhexa/toolbox/iaso/iaso.py @@ -58,7 +58,7 @@ def get_org_units(self, page: int = 1, limit: int = 10, **kwargs) -> dict: params = kwargs params.update({"page": page, "limit": limit}) response = self.api_client.get("/api/orgunits", params=params) - return response.json().get("orgUnits") + return response.json().get("orgunits") def get_form_instances( self,