aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2017-08-11 09:03:12 -0700
committerahothan <ahothan@cisco.com>2017-08-11 09:03:12 -0700
commitf9be20deb65085a0bb2a32980bb182c10a56324a (patch)
tree6eea9a8547c4a3dd37ac68c7f4de087b364dfd12
parent31549982d3bb674ee251cc3f1e9f358badbf632d (diff)
Fix NFVBENCH-3 config is modified by plugin causing side effects
Change-Id: I2b61e7be346333ff2ba26e14582c9c7c7f92a416 Signed-off-by: ahothan <ahothan@cisco.com>
-rw-r--r--nfvbench/nfvbench.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py
index bf39a44..5b7eb91 100644
--- a/nfvbench/nfvbench.py
+++ b/nfvbench/nfvbench.py
@@ -21,6 +21,7 @@ from chain_runner import ChainRunner
from collections import defaultdict
from config import config_load
from config import config_loads
+import copy
import credentials
import datetime
from factory import BasicFactory
@@ -87,7 +88,7 @@ class NFVBench(object):
"vswitch": self.specs.openstack.vswitch,
"encaps": self.specs.openstack.encaps
},
- "config": self.config_plugin.prepare_results_config(dict(self.config)),
+ "config": self.config_plugin.prepare_results_config(copy.deepcopy(self.config)),
"benchmarks": {
"network": {
"service_chain": self.chain_runner.run(),