summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSongnon <songnon.zhang@ericsson.com>2016-07-20 16:13:59 +0800
committerSongnon <songnon.zhang@ericsson.com>2016-07-21 13:46:46 +0800
commit0c6ec33f372cfafb55aa2df12511fb11848a69e4 (patch)
tree8778b4011882a8c49fbded8ee82b0441ee371910
parentebb9bc33134a90ea707f163950487056dc64e729 (diff)
Fix a bug for node context
Change-Id: Idff42e95f5ade160c00adc13c158dc1746e8d049 Signed-off-by: Songnon <songnon.zhang@ericsson.com>
-rw-r--r--yardstick/benchmark/contexts/node.py4
1 files changed, 3 insertions, 1 deletions
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