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:
parent
b98442a591
commit
7fe325f8a8
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user