From 8ae6ff90520cd8ebd74840377a0e15799bd752eb Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Mon, 29 Sep 2014 12:53:15 +0200 Subject: [PATCH] feature #2911: change monitor attributes keys for ESX hosts within vCenter to ease Sunstone integration --- src/vmm_mad/remotes/vcenter/vcenter_driver.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vmm_mad/remotes/vcenter/vcenter_driver.rb b/src/vmm_mad/remotes/vcenter/vcenter_driver.rb index 83b7ef565d..71a0d08a1c 100644 --- a/src/vmm_mad/remotes/vcenter/vcenter_driver.rb +++ b/src/vmm_mad/remotes/vcenter/vcenter_driver.rb @@ -359,12 +359,12 @@ class VCenterHost < ::OpenNebula::Host host_info << "HOSTNAME=\"" << h.name.to_s << "\"," host_info << "MODELNAME=\"" << hw.cpuModel.to_s << "\"," host_info << "CPUSPEED=" << hw.cpuMhz.to_s << "," - host_info << "TOTALCPU=" << total_cpu.to_s << "," - host_info << "USEDCPU=" << used_cpu.to_s << "," - host_info << "FREECPU=" << free_cpu.to_s << "," - host_info << "TOTALMEMORY=" << total_memory.to_s << "," - host_info << "USEDMEMORY=" << used_memory.to_s << "," - host_info << "FREEMEMORY=" << free_memory.to_s + host_info << "MAX_CPU=" << total_cpu.to_s << "," + host_info << "USED_CPU=" << used_cpu.to_s << "," + host_info << "FREE_CPU=" << free_cpu.to_s << "," + host_info << "MAX_MEMORY=" << total_memory.to_s << "," + host_info << "USED_MEMORY=" << used_memory.to_s << "," + host_info << "FREE_MEMORY=" << free_memory.to_s host_info << "]" }