From c16ecea7f007a4257dc5353150f9c68cffc5603e Mon Sep 17 00:00:00 2001 From: Petar Efnushev Date: Fri, 20 May 2016 20:15:54 +0200 Subject: [PATCH] reverted change in default groups validation --- 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 b1f5011..c359d24 100644 --- a/ckanext/harvest/harvesters/ckanharvester.py +++ b/ckanext/harvest/harvesters/ckanharvester.py @@ -128,10 +128,10 @@ class CKANHarvester(HarvesterBase): # Check if default groups exist context = {'model': model, 'user': c.user} - for group_ in config_obj['default_groups']: + for group_name in config_obj['default_groups']: try: group = get_action('group_show')( - context, {'id': group_['id']}) + context, {'id': group_name}) except NotFound, e: raise ValueError('Default group not found')