Merge pull request #93 from MicKBfr/patch-1

Update vsphere-influxdb.go
This commit is contained in:
Adrian Todorov 2018-09-16 15:01:46 +02:00 committed by GitHub
commit 23505fb8d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)