Skip to content

Commit 8f558d8

Browse files
committed
Fix access to federation properties for services
1 parent a6a3bc9 commit 8f558d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
- `DataCube.sar_backscatter()`: add corresponding band names to metadata when enabling "mask", "contributing_area", "local_incidence_angle" or "ellipsoid_incidence_angle" ([#804](https://github.com/Open-EO/openeo-python-client/issues/804))
2121
- Proactively refresh access/bearer token in `MultiBackendJobManager` before launching a job start thread ([#817](https://github.com/Open-EO/openeo-python-client/issues/817))
22+
- `Connection.list_services()`: Fix list access error for federation extension
2223

2324

2425
## [0.45.0] - 2025-09-17

openeo/rest/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,12 +848,12 @@ def list_services(self) -> list:
848848
:return: data_dict: Dict All available services
849849
"""
850850
# TODO return parsed service objects
851-
services = self.get('/services', expected_status=200).json()["services"]
852-
federation_missing = federation_extension.get_federation_missing(data=services, resource_name="services")
851+
response = self.get("/services", expected_status=200).json()
852+
federation_missing = federation_extension.get_federation_missing(data=response, resource_name="services")
853853
federation = self.capabilities().ext_federation_backend_details()
854854
return VisualList(
855855
"data-table",
856-
data=services,
856+
data=response["services"],
857857
parameters={"columns": "services", "missing": federation_missing, "federation": federation},
858858
)
859859

0 commit comments

Comments
 (0)