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

M #-: fix minor bug in OneGate (#1037)

This commit is contained in:
Alejandro Huertas Herrero 2021-03-29 11:29:14 +02:00 committed by GitHub
parent 3dfc7218a0
commit 56b16f1915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,7 +521,9 @@ helpers do
# Replace escaped \n by no scaped one
ret.gsub!("\\n", "\n")
ret.insert(ret.size, "\"") if ret[-1] != ']' && ret[-1] != "\""
if escape && ret[-1] != ']' && ret[-1] != "\""
ret.insert(ret.size, "\"")
end
ret
end