Merge branch '62-default-package-name'

This commit is contained in:
amercader 2013-08-19 18:23:37 +01:00
commit 52956feab9
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ class HarvesterBase(SingletonPlugin):
log.info('Package with GUID %s exists and needs to be updated' % harvest_object.guid) log.info('Package with GUID %s exists and needs to be updated' % harvest_object.guid)
# Update package # Update package
context.update({'id':package_dict['id']}) context.update({'id':package_dict['id']})
package_dict.setdefault('name',
existing_package_dict['name'])
new_package = get_action('package_update_rest')(context, package_dict) new_package = get_action('package_update_rest')(context, package_dict)
else: else: