mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
add check to skip clones in progress
This commit is contained in:
parent
9508bf0dae
commit
65b5bd801f
@ -378,6 +378,10 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
|
||||
// If we find it, return it, otherwise we return null.
|
||||
|
||||
for _, vm := range vmmo {
|
||||
// check if VM is a clone in progress and skip it
|
||||
if vm.Summary.Runtime.Host == nil {
|
||||
continue
|
||||
}
|
||||
vmhost := vm.Summary.Runtime.Host
|
||||
|
||||
for _, cl := range clmo {
|
||||
|
Loading…
Reference in New Issue
Block a user