From 1ba625ef70951c84270eafdb436432dd99cc0b16 Mon Sep 17 00:00:00 2001 From: rexlee8776 Date: Wed, 14 Sep 2016 08:33:53 +0000 Subject: dispatcher use YARDSTICK_BRANCH to distinguish different branch JIRA: YARDSTICK-349 Change-Id: I8d1e9cd6124cbc8634583751882ec70bdbe4627a Signed-off-by: rexlee8776 --- yardstick/dispatcher/influxdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yardstick/dispatcher/influxdb.py b/yardstick/dispatcher/influxdb.py index a9825fa35..e431f2c1e 100644 --- a/yardstick/dispatcher/influxdb.py +++ b/yardstick/dispatcher/influxdb.py @@ -68,7 +68,9 @@ class InfluxdbDispatcher(DispatchBase): "pod_name": os.environ.get('NODE_NAME', 'unknown'), "installer": os.environ.get('INSTALLER_TYPE', 'unknown'), "deploy_scenario": os.environ.get('DEPLOY_SCENARIO', 'unknown'), - "version": os.environ.get('YARDSTICK_VERSION', 'unknown') + "version": os.path.basename(os.environ.get('YARDSTICK_BRANCH', + 'unknown')) + } def _dict_key_flatten(self, data): -- cgit 1.2.3-korg