diff options
author | Jing Lu <lvjing5@huawei.com> | 2016-11-24 03:22:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-24 03:22:27 +0000 |
commit | 719cb0de632c4b1a81e93231278323e43a58dfdf (patch) | |
tree | a64706c710eb624f14928d042f17100455561860 /api | |
parent | eec370bc52caee7fe1633ae9f3ec8ac85ac50119 (diff) | |
parent | e6d468e6a2d055be230a58e1741976eb86d54c5d (diff) |
Merge "influx: use urlsplit.hostname instead of netloc"
Diffstat (limited to 'api')
-rw-r--r-- | api/utils/influx.py | 2 |
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): |