Code Review
/
yardstick.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0e23c69
)
influx: use urlsplit.hostname instead of netloc
37/24737/1
author
Ross Brattain
<ross.b.brattain@intel.com>
Wed, 23 Nov 2016 06:19:49 +0000
(22:19 -0800)
committer
Ross Brattain
<ross.b.brattain@intel.com>
Wed, 23 Nov 2016 06:20:50 +0000
(22:20 -0800)
turns out urlsplit supports .hostname so we don't have to split netloc
Change-Id: I09614812296a216a369559bf55d66d94380feb94
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
api/utils/influx.py
patch
|
blob
|
history
diff --git
a/api/utils/influx.py
b/api/utils/influx.py
index
52a90b6
..
1d56c95
100644
(file)
--- 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):