diff --git a/src/vmm_mad/remotes/vcenter/vcenter_driver.rb b/src/vmm_mad/remotes/vcenter/vcenter_driver.rb index 546c0b2c31..98f8ec75c2 100644 --- a/src/vmm_mad/remotes/vcenter/vcenter_driver.rb +++ b/src/vmm_mad/remotes/vcenter/vcenter_driver.rb @@ -471,7 +471,7 @@ class VIClient # Skip those not in cluster next if !n[:host][0] - # Networks can be in several cluster, create one per cluster + # Networks can be in several cluster, create one per cluster Array(n[:host][0]).each{ |host_system| net_name = "#{n.name} - #{host_system.parent.name}" @@ -1182,7 +1182,7 @@ class VCenterHost < ::OpenNebula::Host rp_name += rp.name rp_info << "\nRESOURCE_POOL = [" - rp_info << "NAME=#{rp_name}," + rp_info << "NAME=\"#{rp_name}\"," rp_info << "CPU_EXPANDABLE=#{cpu_expandable}," rp_info << "CPU_LIMIT=#{cpu_limit}," rp_info << "CPU_RESERVATION=#{cpu_reservation}," @@ -1807,12 +1807,12 @@ class VCenterVm str_info << "#{POLL_ATTRIBUTE[:memory]}=" << @used_memory.to_s << " " str_info << "#{POLL_ATTRIBUTE[:netrx]}=" << @netrx.to_s << " " str_info << "#{POLL_ATTRIBUTE[:nettx]}=" << @nettx.to_s << " " - str_info << "ESX_HOST=" << @esx_host.to_s << " " + str_info << "ESX_HOST='" << @esx_host.to_s << "' " str_info << "GUEST_STATE=" << @guest_state.to_s << " " str_info << "VMWARETOOLS_RUNNING_STATUS=" << @vmware_tools.to_s << " " str_info << "VMWARETOOLS_VERSION=" << @vmtools_ver.to_s << " " str_info << "VMWARETOOLS_VERSION_STATUS=" << @vmtools_verst.to_s << " " - str_info << "RESOURCE_POOL=" << @vm.resourcePool.name << " " + str_info << "RESOURCE_POOL='" << @vm.resourcePool.name << "' " end ########################################################################