Browse Source

fix crash on VM cloning

pull/53/head v0.8.3
Adrian Todorov 4 years ago
parent
commit
942b49d61e
  1. 4
      vsphere-influxdb.go

4
vsphere-influxdb.go

@ -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…
Cancel
Save