summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2016-09-14 08:33:53 +0000
committerrexlee8776 <limingjiang@huawei.com>2016-09-14 09:00:21 +0000
commit1ba625ef70951c84270eafdb436432dd99cc0b16 (patch)
tree17f07494162c5a27114d07aa9411ff79e3c6b4cf
parent6651dc202408f38458ab6dbe07c099dac1ae7e00 (diff)
dispatcher use YARDSTICK_BRANCH to distinguish different branch
JIRA: YARDSTICK-349 Change-Id: I8d1e9cd6124cbc8634583751882ec70bdbe4627a Signed-off-by: rexlee8776 <limingjiang@huawei.com>
-rw-r--r--yardstick/dispatcher/influxdb.py4
1 files changed, 3 insertions, 1 deletions
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):