diff options
author | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2016-02-23 12:58:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-02-23 12:58:16 +0000 |
commit | 4e852cee8b4dc9d78941d1d70b15fd53c0c1f98d (patch) | |
tree | beea19e5c50fd666e5dc0e19ef6d0b16e40e95c2 | |
parent | 21ac7f414dd77d37d5c7ced49c4644b1c580ca02 (diff) | |
parent | f5a60cbbfd999c6012e1c633d58e5b0f1938a7ff (diff) |
Merge "iperf3: fix for influxDb schema errors" into stable/brahmaputra
-rw-r--r-- | yardstick/benchmark/scenarios/networking/iperf3.py | 5 |
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"] |