From bcb5087a25143ade861e543be03168c9a711cdcb Mon Sep 17 00:00:00 2001 From: Edip YILDIZ Date: Mon, 21 Aug 2017 09:12:30 +0300 Subject: [PATCH] scheduler json loads for task --- opt/ahenk/base/plugin/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt/ahenk/base/plugin/plugin.py b/opt/ahenk/base/plugin/plugin.py index 3be4c7f..01821ef 100644 --- a/opt/ahenk/base/plugin/plugin.py +++ b/opt/ahenk/base/plugin/plugin.py @@ -114,7 +114,7 @@ class Plugin(threading.Thread): self.context.put('protocol', json.loads(item_obj.get_file_server())['protocol']) self.context.put('parameterMap', json.loads(item_obj.get_file_server())['parameterMap']) - task_data = item_obj.get_parameter_map() + task_data = json.loads(item_obj.get_parameter_map()) # check if mail send is actve or not and set mail params to context object.. plugins get mail params via context object self.context.set_mail_send(task_data['mailSend'] if 'mailSend' in task_data else False)