1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

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

This commit is contained in:
Alejandro Huertas Herrero 2020-06-18 13:58:18 +02:00 committed by GitHub
parent 75cb2918d9
commit 443b26c4e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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