mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
fix crash on VM cloning
This commit is contained in:
parent
3fe6b1fc22
commit
942b49d61e
@ -449,7 +449,9 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
|
||||
if vmToPool[vm.Self] != "" {
|
||||
vmSummary[vm.Self]["respool"] = vmToPool[vm.Self]
|
||||
}
|
||||
vmSummary[vm.Self]["esx"] = hostSummary[*vm.Summary.Runtime.Host]["name"]
|
||||
if vm.Summary.Runtime.Host != nil {
|
||||
vmSummary[vm.Self]["esx"] = hostSummary[*vm.Summary.Runtime.Host]["name"]
|
||||
}
|
||||
}
|
||||
|
||||
// get object names
|
||||
|
Loading…
Reference in New Issue
Block a user