diff --git a/datacube_ows/ows_configuration.py b/datacube_ows/ows_configuration.py index bb866a70..f2e83684 100644 --- a/datacube_ows/ows_configuration.py +++ b/datacube_ows/ows_configuration.py @@ -414,6 +414,7 @@ def __init__(self, cfg: CFG_DICT, global_cfg: "OWSConfig", parent_layer: OWSFold self.hide = False self.local_env: ODCEnvironment | None = None local_env = cast(str | None, cfg.get("env")) + self.local_env = ODCConfig.get_environment(env=local_env) # TODO: MULTIDB_SUPPORT # After refactoring the range tables, Uncomment this code for multi-database support # (Don't forget to add to documentation) @@ -598,7 +599,9 @@ def make_ready(self, *args: Any, **kwargs: Any) -> None: if low_res_prod_name: product = self.dc.index.products.get_by_name(low_res_prod_name) if not product: - raise ConfigException(f"Could not find product {low_res_prod_name} in datacube for layer {self.name}") + raise ConfigException( + f"Could not find product {low_res_prod_name} in datacube for layer {self.name}" + ) self.low_res_products.append(product) self.product = self.products[0] self.definition = self.product.definition