Skip to content

Commit 96b3c52

Browse files
author
Ivan Kovalkovskyi
committed
Merge branch 'master' of github.com:Scalr/influxdb-python
2 parents dc9f2e5 + dfa4de3 commit 96b3c52

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

influxdb/line_protocol.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ def _escape_tag(tag):
5757
)
5858

5959

60+
def _escape_tag_value(value):
61+
ret = _escape_tag(value)
62+
if ret.endswith('\\'):
63+
ret += ' '
64+
return ret
65+
66+
6067
def quote_ident(value):
6168
"""Indent the quotes."""
6269
return "\"{}\"".format(value
@@ -135,7 +142,7 @@ def make_lines(data, precision=None):
135142
# tags should be sorted client-side to take load off server
136143
for tag_key, tag_value in sorted(iteritems(tags)):
137144
key = _escape_tag(tag_key)
138-
value = _escape_tag(tag_value)
145+
value = _escape_tag_value(tag_value)
139146

140147
if key != '' and value != '':
141148
key_values.append(key + "=" + value)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy