From 160647fca0c218d0039ca598df471b95aa23456d Mon Sep 17 00:00:00 2001 From: ADO Date: Wed, 24 May 2017 14:49:55 +0200 Subject: [PATCH] Fix variable names --- vsphere-influxdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsphere-influxdb.go b/vsphere-influxdb.go index 59ed89e..23f893b 100644 --- a/vsphere-influxdb.go +++ b/vsphere-influxdb.go @@ -397,9 +397,9 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient. vmSummary[vm.Self]["cluster"] = vmToCluster[vm.Self] } if vmToPool[vm.Self] != "" { - vmsummary[vm.Self]["respool"] = vmToPool[vm.Self] + vmSummary[vm.Self]["respool"] = vmToPool[vm.Self] } - vmsummary[vm.Self]["esx"] = host_summary[*vm.Summary.Runtime.Host]["name"] + vmSummary[vm.Self]["esx"] = hostSummary[*vm.Summary.Runtime.Host]["name"] } // get object names