Skip to content

Commit

Permalink
[Fixes #11129] GWC REST path incorrectly renamed to datasets (#11130)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4bf0d8a)
  • Loading branch information
etj authored and github-actions[bot] committed May 30, 2023
1 parent d85c69c commit 4a5c40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/geoserver/management/commands/set_default_gridsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def handle(self, **options):
"""
curl -v -u admin:geoserver -XPOST \
-H "Content-type: text/xml" -d @poi.xml \
"http://localhost:8080/geoserver/gwc/rest/datasets/tiger:poi.xml"
"http://localhost:8080/geoserver/gwc/rest/layers/tiger:poi.xml"
"""
headers = {'Content-type': 'text/xml'}
payload = ET.tostring(tree)
r = requests.post(f'{url}gwc/rest/datasets/{layer.typename}.xml',
r = requests.post(f'{url}gwc/rest/layers/{layer.typename}.xml',
headers=headers,
data=payload,
auth=HTTPBasicAuth(user, passwd))
Expand Down

0 comments on commit 4a5c40e

Please sign in to comment.