Skip to content

Commit

Permalink
- geofence rest endpoint 2.13.x compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Oct 9, 2018
1 parent 2e1dfe7 commit 4fd8e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ def get_highest_priority():
# Check first that the rules does not exist already
"""
curl -X GET -u admin:geoserver \
http://<host>:<port>/geoserver/rest/geofence/rules.json?page=(count-1)&entries=1
http://<host>:<port>/geoserver/geofence/rest/rules.json?page=(count-1)&entries=1
"""
headers = {'Content-type': 'application/json'}
r = requests.get(url + 'rest/geofence/rules.json?page=' + str(rules_count-1) + '&entries=1',
r = requests.get(url + 'geofence/rest/rules.json?page=' + str(rules_count-1) + '&entries=1',
headers=headers,
auth=HTTPBasicAuth(user, passwd))
if (r.status_code < 200 or r.status_code > 201):
Expand Down

0 comments on commit 4fd8e94

Please sign in to comment.