Skip to content

Commit

Permalink
- Fix an error on coverage_store return
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed May 9, 2024
1 parent d60ece7 commit b33c315
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/geoserver/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,6 @@ def create_coveragestore(
layer_name, name, resp.status_code, resp.text
)
)
self._cache.clear()
return self.get_resources(names=layer_name, workspaces=[workspace])[0]
else:
data = open(path, "rb")
params = {"configure": "first", "coverageName": name}
Expand Down Expand Up @@ -687,7 +685,8 @@ def create_coveragestore(
)
)

return self.get_stores(names=name, workspaces=[workspace])[0]
self._cache.clear()
return self.get_resources(names=layer_name, workspaces=[workspace])[0]

def add_granule(self, data, store, workspace=None):
"""Harvest/add a granule into an existing imagemosaic"""
Expand Down

0 comments on commit b33c315

Please sign in to comment.