1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Fix wrong esx host retrieval for vCenter VMs

This commit is contained in:
Tino Vazquez 2016-04-26 18:48:29 +02:00
parent e769ba945e
commit cfc38b0359

View File

@ -1688,7 +1688,7 @@ class VCenterVm
@used_memory = 0 if @used_memory.to_i < 0
@used_cpu = 0 if @used_cpu.to_i < 0
@esx_host = host.name
@esx_host = @vm.summary.runtime.host.name
@guest_ip = @vm.guest.ipAddress
@guest_state = @vm.guest.guestState
@vmware_tools = @vm.guest.toolsRunningStatus