mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
parent
c338b345b3
commit
f924fc5f42
@ -418,7 +418,9 @@ class DatacenterFolder
|
||||
full_process = !args[:short]
|
||||
|
||||
vc_network_ref = vc_network._ref
|
||||
vc_network_name = vc_network.name
|
||||
vc_network_name = VCenterDriver::VcImporter.sanitize(
|
||||
vc_network.name
|
||||
)
|
||||
vc_network_host = vc_network['host']
|
||||
vc_network_tag = vc_network['tag']
|
||||
|
||||
|
@ -382,6 +382,14 @@ module VCenterDriver
|
||||
end
|
||||
end
|
||||
|
||||
def self.sanitize(text)
|
||||
bad_chars = ['|']
|
||||
bad_chars.each do |bad_char|
|
||||
text.gsub!(bad_char, '_')
|
||||
end
|
||||
text
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user