From dd1acd0c6ba1d2d16c2fd2c963a625b209a1bc1c Mon Sep 17 00:00:00 2001 From: Stefan Oderbolz Date: Mon, 7 Oct 2013 11:22:19 +0200 Subject: [PATCH] Use remote_orgs for organizations --- ckanext/harvest/harvesters/ckanharvester.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/harvest/harvesters/ckanharvester.py b/ckanext/harvest/harvesters/ckanharvester.py index 353c61c..b08fe1d 100644 --- a/ckanext/harvest/harvesters/ckanharvester.py +++ b/ckanext/harvest/harvesters/ckanharvester.py @@ -297,7 +297,7 @@ class CKANHarvester(HarvesterBase): package_dict['groups'] = validated_groups remote_orgs = self.config.get('remote_orgs', None) - if not remote_groups in ('only_local', 'create'): + if not remote_orgs in ('only_local', 'create'): # Ignore remote groups package_dict.pop('owner_org', None) else: @@ -315,7 +315,7 @@ class CKANHarvester(HarvesterBase): validated_org = org['id'] except NotFound, e: log.info('Organization %s is not available' % remote_org) - if remote_groups == 'create': + if remote_orgs == 'create': try: org = self._get_group(harvest_object.source.url, remote_org) for key in ['packages', 'created', 'users', 'groups', 'tags', 'extras', 'display_name', 'type']: