Commit 386a747b authored by Sanjay Yadav's avatar Sanjay Yadav

FXD: Fixed JSON and YAML Load.

parent 244db293
Pipeline #30977 failed with stage
in 11 seconds
......@@ -73,8 +73,11 @@ def load_data(data_config, handler=None):
data = {}
for key, conf in data_config.items():
if 'function' in conf:
data[key] = build_transform(conf, vars={'handler': None})(handler=handler)[0]
elif conf.get('ext') in {'yaml', 'yml', 'json'}:
data[key] ='url'), conf.pop('ext'), **dict(conf))
data[key] ='url'), **dict(conf))
return data
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment