Merge problem, re-enable non-standard DB names
This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
Reference in New Issue
Block a user