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