aboutsummaryrefslogtreecommitdiffstats
path: root/api/utils
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2016-11-24 03:22:27 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-24 03:22:27 +0000
commit719cb0de632c4b1a81e93231278323e43a58dfdf (patch)
treea64706c710eb624f14928d042f17100455561860 /api/utils
parenteec370bc52caee7fe1633ae9f3ec8ac85ac50119 (diff)
parente6d468e6a2d055be230a58e1741976eb86d54c5d (diff)
Merge "influx: use urlsplit.hostname instead of netloc"
Diffstat (limited to 'api/utils')
-rw-r--r--api/utils/influx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/utils/influx.py b/api/utils/influx.py
index 52a90b61c..1d56c95fd 100644
--- a/api/utils/influx.py
+++ b/api/utils/influx.py
@@ -29,7 +29,7 @@ def get_data_db_client():
def _get_ip(url):
- return urlsplit(url).netloc.split(':')[0]
+ return urlsplit(url).hostname
def _write_data(measurement, field, timestamp, tags):