8000 Merge pull request #1 from h0bot/udplineprotocol · h0bot/influxdb-python@a1c0abe · GitHub
[go: up one dir, main page]

Skip to content

Commit a1c0abe

Browse files
authored
Merge pull request #1 from h0bot/udplineprotocol
Sending via UDP line protocol throws
2 parents c9fcede + 21d025e commit a1c0abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def send_packet(self, packet, protocol='json'):
779779
if protocol == 'json':
780780
data = make_lines(packet).encode('utf-8')
781781
elif protocol == 'line':
782-
data = ('\n'.join(data) + '\n').encode('utf-8')
782+
data = ('\n'.join(packet) + '\n').encode('utf-8')
783783
self.udp_socket.sendto(data, (self._host, self.udp_port))
784784

785785

0 commit comments

Comments
 (0)
0