From 819939acfd20c1fb81f384258df9ef58d9233b93 Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Thu, 19 Jan 2017 09:59:58 +0000 Subject: Bugfix: context not found for server ''node1.LF'' JIRA: YARDSTICK-540 We are adding dynamically generated suffix to server name in the previous patch. But in that patch we just change the 'target', 'host' in nodes, but not 'node1', 'node2' ... This patch will change all this. Change-Id: Ic7c82c323dea24a40f1fe30871603d30c2689f67 Signed-off-by: chenjiankun --- yardstick/benchmark/core/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py index d05117b47..6cfec7b13 100644 --- a/yardstick/benchmark/core/task.py +++ b/yardstick/benchmark/core/task.py @@ -294,7 +294,8 @@ class TaskParser(object): # pragma: no cover change_server_name(scenario, name_suffix) try: - change_server_name(scenario['nodes'], name_suffix) + for node in scenario['nodes']: + scenario['nodes'][node] += name_suffix except KeyError: pass -- cgit 1.2.3-korg