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:
parent
75cb2918d9
commit
443b26c4e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user