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

M #-: minor fix in onedb (#26)

(cherry picked from commit 443b26c4e24d6ec7ec38720530ceea4153e8af1b)
This commit is contained in:
Alejandro Huertas Herrero 2020-06-18 13:58:18 +02:00 committed by Ruben S. Montero
parent 51d9062c9e
commit ffc71dff9e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -161,12 +161,12 @@ class OneDB
ops[:db_name] = aug.get('DB/DB_NAME')
ops.each do |k, v|
next unless v
next if !v || !(v.is_a? String)
ops[k] = v.chomp('"').reverse.chomp('"').reverse
end
ops.each {|_, v| v.gsub!("\\", '') if v }
ops.each {|_, v| v.gsub!("\\", '') if v && (v.is_a? String) }
ops[:backend] = ops[:backend].to_sym unless ops[:backend].nil?
ops[:port] = ops[:port].to_i