aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2016-09-14 08:33:53 +0000
committerliang gao <jean.gaoliang@huawei.com>2016-09-14 09:25:36 +0000
commit692f3223c53d43686fa660456a34703f2e0a756c (patch)
tree76788ee913fe702fd332fe69ed949c14ac638690
parentb6d7290c9643d68053b44810cfff25550c7d7350 (diff)
dispatcher use YARDSTICK_BRANCH to distinguish different branch
JIRA: YARDSTICK-349 Change-Id: I8d1e9cd6124cbc8634583751882ec70bdbe4627a Signed-off-by: rexlee8776 <limingjiang@huawei.com> (cherry picked from commit 1ba625ef70951c84270eafdb436432dd99cc0b16)
-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):