aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-23 12:58:16 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-02-23 12:58:16 +0000
commit4e852cee8b4dc9d78941d1d70b15fd53c0c1f98d (patch)
treebeea19e5c50fd666e5dc0e19ef6d0b16e40e95c2
parent21ac7f414dd77d37d5c7ced49c4644b1c580ca02 (diff)
parentf5a60cbbfd999c6012e1c633d58e5b0f1938a7ff (diff)
Merge "iperf3: fix for influxDb schema errors" into stable/brahmaputra
-rw-r--r--yardstick/benchmark/scenarios/networking/iperf3.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/networking/iperf3.py b/yardstick/benchmark/scenarios/networking/iperf3.py
index 86610c88f..bb41c3df1 100644
--- a/yardstick/benchmark/scenarios/networking/iperf3.py
+++ b/yardstick/benchmark/scenarios/networking/iperf3.py
@@ -132,7 +132,10 @@ For more info see http://software.es.net/iperf
# error cause in json dict on stdout
raise RuntimeError(stdout)
- result.update(json.loads(stdout))
+ # Note: convert all ints to floats in order to avoid
+ # schema conflicts in influxdb. We probably should add
+ # a format func in the future.
+ result.update(json.loads(stdout, parse_int=float))
if "sla" in self.scenario_cfg:
sla_iperf = self.scenario_cfg["sla"]