update useragent string for importer

pull/3502/head
Cory LaNou 2015-08-03 13:49:26 -05:00
parent 296f16d634
commit 0682c2a7b0
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (i *Importer) Import() error {
config.URL = i.config.URL
config.Username = i.config.Username
config.Password = i.config.Password
config.UserAgent = fmt.Sprintf("influxDB importer version %s", i.config.Version)
config.UserAgent = fmt.Sprintf("influxDB importer/%s", i.config.Version)
cl, err := client.NewClient(config)
if err != nil {
return fmt.Errorf("could not create client %s", err)