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

F #4913: Allow spaces in vcenter clusters (import and monitor)

This commit is contained in:
mcabrerizo 2017-04-04 20:11:45 +02:00
parent b98442a591
commit 7fe325f8a8
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class DatacenterFolder
next if one_host #If the host has been already imported
host_info = {}
host_info[:cluster_name] = host['name']
host_info[:cluster_name] = host['name'].tr(" ", "_")
host_info[:cluster_ref] = host['_ref']
host_info[:vcenter_uuid] = vcenter_uuid
host_info[:vcenter_version] = vcenter_version

View File

@ -101,8 +101,8 @@ class ClusterComputeResource
str_info = ""
# Get cluster name for informative purposes
str_info << "VCENTER_NAME=" << self['name'] << "\n"
# Get cluster name for informative purposes (replace space with _ if any)
str_info << "VCENTER_NAME=" << self['name'].tr(" ", "_") << "\n"
# System
str_info << "HYPERVISOR=vcenter\n"