Merge problem, re-enable non-standard DB names
This commit is contained in:
parent
ac97fefb91
commit
ab4344a781
|
@ -41,7 +41,7 @@ func (i *InfluxDB) Connect() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = c.Query(client.Query{
|
_, err = c.Query(client.Query{
|
||||||
Command: fmt.Sprintf("CREATE DATABASE telegraf"),
|
Command: fmt.Sprintf("CREATE DATABASE %s", i.Database),
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil && !strings.Contains(err.Error(), "database already exists") {
|
if err != nil && !strings.Contains(err.Error(), "database already exists") {
|
||||||
|
|
Loading…
Reference in New Issue