wxt9861/esxi_stats

get all vm guest ip's?

flum78 opened this issue · 1 comments

is it possible to get all vm ip's?

i tried to read the code and i i think i found where the integration get the guest_ip.

if vm_sum.guest.ipAddress:
vm_ip = vm_sum.guest.ipAddress
else:
vm_ip = "n/a"
_LOGGER.debug("Unable to return VM IP address for %s", vm_name)

i tried to change the code in:

if vm_sum.guest.net.IPAddress:
vm_ip = vm_sum.guest.net.ipAddress
else:
vm_ip = "n/a"
_LOGGER.debug("Unable to return VM IP address for %s", vm_name)

but this breaks the integration.

hope you could help.

greetings and big thanks for the integration