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:
parent
f8aa57379f
commit
82505a07ef
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user