make sure config is also on top level

This commit is contained in:
kindly 2013-02-28 13:46:16 +00:00
parent e0a3eb7899
commit 9cef777e7b
1 changed files with 3 additions and 1 deletions

View File

@ -155,8 +155,10 @@ def harvest_source_extra_validator(key,data,errors,context):
config_dict = {} config_dict = {}
config_dict.update(extra_data) config_dict.update(extra_data)
if config_dict: if config_dict:
config = json.dumps(config_dict)
package_extras.append(dict(key='config', package_extras.append(dict(key='config',
value=json.dumps(config_dict))) value=config))
data[('config',)] = config
if package_extras: if package_extras:
data[('extras',)] = package_extras data[('extras',)] = package_extras