Merge problem, re-enable non-standard DB names

This commit is contained in:
Cameron Sparr 2015-08-25 16:52:16 -06:00
parent ac97fefb91
commit ab4344a781
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func (i *InfluxDB) Connect() error {
}
_, 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") {