From b50b7a2624dd2d3cadad9be081cadcf8fd9ce04a Mon Sep 17 00:00:00 2001 From: Arseniy Fomchenko Date: Thu, 23 Mar 2017 18:48:02 +0300 Subject: [PATCH] support Android plugin --- yandextank/plugins/Android/plugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yandextank/plugins/Android/plugin.py b/yandextank/plugins/Android/plugin.py index 12dc3e8..ce60b11 100644 --- a/yandextank/plugins/Android/plugin.py +++ b/yandextank/plugins/Android/plugin.py @@ -22,6 +22,7 @@ logger = logging.getLogger(__name__) class Plugin(AbstractPlugin, GeneratorPlugin): SECTION = "android" + SECTION_META = "meta" def __init__(self, core): super(Plugin, self).__init__(core) @@ -169,9 +170,9 @@ class Plugin(AbstractPlugin, GeneratorPlugin): 'offset': 0, 'bynary': False, 'job_config': { - 'task': self.core.job.task, - 'jobname': self.core.job.name, - 'dsc': self.core.job.description, + 'task': self.core.get_option(self.SECTION_META, 'task').decode('utf8'), + 'jobname': self.core.get_option(self.SECTION_META, 'job_name').decode('utf8'), + 'dsc': self.core.get_option(self.SECTION_META, 'job_dsc').decode('utf8'), 'component': self.core.get_option('meta', 'component') } }