Skip to content

Commit

Permalink
[Fixes #8987]Add missing option for list remote resources (#8988)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi authored Mar 25, 2022
1 parent 05e19c2 commit 6fd8295
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geonode/services/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def harvest_resource(self, harvest_job_id):
if Layer.objects.filter(alternate=f"{harvest_job.resource_id}").count():
layer = Layer.objects.get(
alternate=f"{harvest_job.resource_id}")
elif Layer.objects.filter(alternate=f"{workspace.name}:{slugify(harvest_job.resource_id)}").exists():
layer = Layer.objects.get(alternate=f"{workspace.name}:{slugify(harvest_job.resource_id)}")
else:
layer = Layer.objects.get(
alternate=f"{workspace.name}:{harvest_job.resource_id}")
Expand Down

0 comments on commit 6fd8295

Please sign in to comment.