Skip to content

Commit 367ecf8

Browse files
committed
bands_from_stac_item: disable consulting of items of parent collection
to avoid unnecessary (and possibly risky) recursion
1 parent f7cdc61 commit 367ecf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def bands_from_stac_item(
894894
elif "bands" in item.properties:
895895
return _BandList(self._band_from_common_bands_metadata(b) for b in item.properties["bands"])
896896
elif consult_collection and (parent_collection := item.get_collection()) is not None:
897-
return self.bands_from_stac_collection(collection=parent_collection)
897+
return self.bands_from_stac_collection(collection=parent_collection, consult_items=False)
898898
elif consult_assets:
899899
# TODO: filter on asset roles?
900900
bands = _BandList.merge(

0 commit comments

Comments
 (0)