From 83b7708439ff248e6e2053b5a0a64a3ec362096b Mon Sep 17 00:00:00 2001 From: afabiani Date: Fri, 10 May 2024 00:04:01 +0200 Subject: [PATCH] - Fix an error on coverage_store return --- src/geoserver/catalog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/geoserver/catalog.py b/src/geoserver/catalog.py index 2c9398d..85453c3 100644 --- a/src/geoserver/catalog.py +++ b/src/geoserver/catalog.py @@ -721,10 +721,12 @@ def create_coveragestore( ) ) self._cache.clear() + time = 0 while name not in [ - store.name for store in self.get_stores(workspaces=[workspace]) + store.name for store in self.get_stores(workspaces=[workspace]) and time < 120 ]: sleep(.5) + time ++ .5 return self.get_resources(names=layer_name, workspaces=[workspace])[0]