From: chenjiankun Date: Thu, 19 Jan 2017 09:59:58 +0000 (+0000) Subject: Bugfix: context not found for server ''node1.LF'' X-Git-Tag: danube.1.0~132^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F27201%2F1;p=yardstick.git 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 --- 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