Fix NFVBENCH-3 config is modified by plugin causing side effects 45/39145/1
authorahothan <ahothan@cisco.com>
Fri, 11 Aug 2017 16:03:12 +0000 (09:03 -0700)
committerahothan <ahothan@cisco.com>
Fri, 11 Aug 2017 16:03:12 +0000 (09:03 -0700)
Change-Id: I2b61e7be346333ff2ba26e14582c9c7c7f92a416
Signed-off-by: ahothan <ahothan@cisco.com>
nfvbench/nfvbench.py

index bf39a44..5b7eb91 100644 (file)
@@ -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(),