Merge pull request #22 from adongy/master

Fix variable names
This commit is contained in:
Adrian Todorov 2017-06-02 10:33:53 +02:00 committed by GitHub
commit c154ed0de6
1 changed files with 2 additions and 2 deletions

View File

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