diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-10-13 06:22:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-13 06:22:34 +0000 |
commit | 5701fc19e9075115ca1be69626c0b3a618f6ae99 (patch) | |
tree | 9f6c0e6c62ec734485f11ca883f424c30dcb66e5 /yardstick/dispatcher/influxdb.py | |
parent | e096baafac0e6594b6ff69c0e296641066583327 (diff) | |
parent | af011b16787e8fd9fc6f918b1d1427dd1be562ec (diff) |
Merge "ping: always save rtt data, influxdb ignore empty data"
Diffstat (limited to 'yardstick/dispatcher/influxdb.py')
-rw-r--r-- | yardstick/dispatcher/influxdb.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yardstick/dispatcher/influxdb.py b/yardstick/dispatcher/influxdb.py index f157e91f9..632b433b5 100644 --- a/yardstick/dispatcher/influxdb.py +++ b/yardstick/dispatcher/influxdb.py @@ -55,7 +55,9 @@ class InfluxdbDispatcher(DispatchBase): for case, data in testcases.items(): tc_criteria = data['criteria'] for record in data['tc_data']: - self._upload_one_record(record, case, tc_criteria) + # skip results with no data because we influxdb encode empty dicts + if record.get("data"): + self._upload_one_record(record, case, tc_criteria) return 0 |