From dfaa38eb3376b8a8c41cb26c6540e400cfe91c26 Mon Sep 17 00:00:00 2001 From: Jeremy Hooke Date: Mon, 23 May 2022 09:26:20 +1000 Subject: [PATCH] Explicitly include locations on indexing --- eodatasets3/prepare/sentinel_l1_prepare.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eodatasets3/prepare/sentinel_l1_prepare.py b/eodatasets3/prepare/sentinel_l1_prepare.py index d5f8d9af..858f6f3b 100644 --- a/eodatasets3/prepare/sentinel_l1_prepare.py +++ b/eodatasets3/prepare/sentinel_l1_prepare.py @@ -572,7 +572,9 @@ def on_success(dataset: DatasetDoc, dataset_path: Path): raise ValueError(f"Product {product_name} not found in ODC index") products[product_name] = product - index.datasets.add(Dataset(product, serialise.to_doc(dataset))) + index.datasets.add( + Dataset(product, serialise.to_doc(dataset), uris=dataset.locations) + ) _LOG.debug("Indexed dataset %s to %s", dataset.id, dataset_path) else: