Skip to content

Commit

Permalink
Merge pull request #93 from MicKBfr/patch-1
Browse files Browse the repository at this point in the history
Update vsphere-influxdb.go
  • Loading branch information
sofixa committed Sep 16, 2018
2 parents 639ef28 + e9bccef commit 23505fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsphere-influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.

// Extra tags per host
hostSummary[host.Self] = make(map[string]string)
hostSummary[host.Self]["name"] = hostSummary[host.Self]["name"] = host.Summary.Config.Name
hostSummary[host.Self]["name"] = host.Summary.Config.Name
// Remove Domain Name from Host
if config.RemoveHostDomainName {
hostSummary[host.Self]["name"] = strings.Replace(host.Summary.Config.Name, config.Domain, "", -1)
Expand Down

0 comments on commit 23505fb

Please sign in to comment.