From 0c6ec33f372cfafb55aa2df12511fb11848a69e4 Mon Sep 17 00:00:00 2001 From: Songnon Date: Wed, 20 Jul 2016 16:13:59 +0800 Subject: Fix a bug for node context Change-Id: Idff42e95f5ade160c00adc13c158dc1746e8d049 Signed-off-by: Songnon --- yardstick/benchmark/contexts/node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yardstick/benchmark/contexts/node.py b/yardstick/benchmark/contexts/node.py index 54ee076f4..c3d652119 100644 --- a/yardstick/benchmark/contexts/node.py +++ b/yardstick/benchmark/contexts/node.py @@ -82,6 +82,8 @@ class NodeContext(Context): LOG.error("Nodes: %r" % nodes) sys.exit(-1) - node = nodes[0] + # A clone is created in order to avoid affecting the + # original one. + node = dict(nodes[0]) node["name"] = attr_name return node -- cgit 1.2.3-korg