Bug #341

OCA exits instead of returning OpenNebula Error

Added by Daniel Molina about 10 years ago. Updated about 9 years ago.

Status:ClosedStart date:09/07/2010
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Client API & Library
Target version:Release 2.0
Resolution:fixed Pull request:
Affected Versions:

Description

ImageRepository exits on Error,

if OpenNebula.is_error?(result)
puts result.message
exit -1
end

instead It should return a OpenNebula Error, explaining the reason of the error.

if OpenNebula.is_error?(result)
return result
end

Associated revisions

Revision d0933d83
Added by Javi Fontan about 10 years ago

bug #341: bug in api calling exit instead of returning error to the caller

Revision aff16e50
Added by Javi Fontan about 10 years ago

bug #341: raise exceptions instead of exiting in OpenNebula::Client

Revision 311eefcb
Added by Javi Fontan about 10 years ago

bug #341: catch exceptions creating OpenNebula::Client

Revision 3a3f4a13
Added by Vlastimil Holer over 3 years ago

B #5035: Specify QCOW2 backing file formats (#341)

History

#1 Updated by Javi Fontan about 10 years ago

  • Subject changed from ImageRepository exits instead of returning OpenNebula Error to OCA exits instead of returning OpenNebula Error

OpenNebula.rb also calls exit in Client initialization

#2 Updated by Javi Fontan about 10 years ago

  • Status changed from New to 3
  • Assignee changed from Daniel Molina to Javi Fontan
  • Resolution set to fixed

#3 Updated by Ruben S. Montero about 9 years ago

  • Status changed from 3 to Closed

Also available in: Atom PDF