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

Merge pull request #4841 from al3xhh/290520

M #-: fix minor bug in onedb
This commit is contained in:
Ruben S. Montero 2020-05-29 12:47:20 +02:00 committed by GitHub
commit 9606d07aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,10 +133,10 @@ class OneDB
ops[:passwd] = aug.get('DB/PASSWD')
ops[:db_name] = aug.get('DB/DB_NAME')
ops = ops.transform_values do |v|
ops.each do |k, v|
next unless v
v.chomp('"').reverse.chomp('"').reverse
ops[k] = v.chomp('"').reverse.chomp('"').reverse
end
ops.each {|_, v| v.gsub!("\\", '') if v }