Skip to content

Commit

Permalink
Fix influxdb output database quoting (influxdata#2851)
Browse files Browse the repository at this point in the history
(cherry picked from commit f47924f)
  • Loading branch information
danielnelson authored and Nevins Bartolomeo committed Aug 23, 2017
1 parent 8601817 commit b4054a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/outputs/influxdb/influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import (
"github.com/influxdata/telegraf/plugins/outputs/influxdb/client"
)

var (
// Quote Ident replacer.
qiReplacer = strings.NewReplacer("\n", `\n`, `\`, `\\`, `"`, `\"`)
)

// InfluxDB struct is the primary data structure for the plugin
type InfluxDB struct {
// URL is only for backwards compatability
Expand Down

0 comments on commit b4054a8

Please sign in to comment.