mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Allow spaces in resource pool names
This commit is contained in:
1 parent
992dc450b8
commit
b14f807670
1 file changed
+4
-4
@@ -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
|
||||
|
||||
########################################################################
|
||||
|
||||
Reference in new issue
Block a user