Skip to content

Commit

Permalink
Fix creation of entirely new GeoServer workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Kröger authored and GeoSander committed May 14, 2024
1 parent 7506d85 commit 6ec2463
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geocatbridge/servers/models/geoserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ def _fixLayerStyle(self, style_name: str):

def _createWorkspace(
self,
namespace: dict[str, dict],
namespace: Optional[dict[str, dict]] = None,
isolated: bool = False,
acl_rules: Optional[dict[str, str]] = None,
service_settings: Optional[dict[str, dict]] = None,
Expand All @@ -1277,8 +1277,8 @@ def _createWorkspace(
ws = {"workspace": {"name": self.workspace, "isolated": isolated}}
self.request(url, data=ws, method="post")

self._setWorkspaceNamespace(namespace)

if namespace:
self._setWorkspaceNamespace(namespace)
if acl_rules:
self._setWorkspaceACL(acl_rules)
if service_settings:
Expand Down

0 comments on commit 6ec2463

Please sign in to comment.