Skip to content

Commit

Permalink
Explicitly include locations on indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyh committed May 23, 2022
1 parent 0aac2b5 commit dfaa38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eodatasets3/prepare/sentinel_l1_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dfaa38e

Please sign in to comment.