1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-27 03:21:29 +03:00

feature #1112: Fix check when building error strings in Zona API

This commit is contained in:
Ruben S. Montero 2012-03-18 23:53:45 +01:00
parent f8aa57379f
commit 82505a07ef

View File

@ -279,7 +279,7 @@ EOT
if value.body
ehash = OZonesJSON.parse_json(value.body,"error")
str << ehash[:message] if !ehash.nil? or !Zona.is_error?(ehash)
str << ehash[:message] if !ehash.nil? and !Zona.is_error?(ehash)
end
return Error.new(str)