Use remote name if present when creating datasets on CKAN harvester
This commit is contained in:
parent
e9dde3f48a
commit
0f5624822c
|
@ -191,8 +191,8 @@ class HarvesterBase(SingletonPlugin):
|
||||||
except NotFound:
|
except NotFound:
|
||||||
# Package needs to be created
|
# Package needs to be created
|
||||||
|
|
||||||
# Check if name has not already been used
|
# Set name if not already there
|
||||||
package_dict['name'] = self._gen_new_name(package_dict['title'])
|
package_dict.setdefault('name', self._gen_new_name(package_dict['title']))
|
||||||
|
|
||||||
log.info('Package with GUID %s does not exist, let\'s create it' % harvest_object.guid)
|
log.info('Package with GUID %s does not exist, let\'s create it' % harvest_object.guid)
|
||||||
harvest_object.current = True
|
harvest_object.current = True
|
||||||
|
|
Loading…
Reference in New Issue