Skip to content

Commit

Permalink
- Fix issue with layer upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Fabiani committed Apr 20, 2018
1 parent f15bc44 commit 0d683c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geonode/geoserver/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def geoserver_upload(
# Step 7. Create the style and assign it to the created resource
# FIXME: Put this in gsconfig.py
logger.info('>>> Step 7. Creating style for [%s]' % name)
publishing = cat.get_layer(name)
cat.save(gs_resource)
cat.reload()
publishing = cat.get_layer(name) or gs_resource

if 'sld' in files:
f = open(files['sld'], 'r')
Expand Down

0 comments on commit 0d683c9

Please sign in to comment.