Hi Łukasz, We left the first boolean value for compatibility with older versions, and added the error code as extra information in case the request failed. It can be ignored if the application just needs to know if the request succeeded or not.
Good luck with the python bindings! -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | cmar...@opennebula.org 2011/8/6 Łukasz Oleś <lukaszo...@gmail.com>: > Hello, > > I started working on python bindings for OCA 3.0 and I have question > > In the documentation I can read that response structure looks like > this: [bool, string, int]. The first value is "True or false whenever > is successful or not." > The last value is error code and 0x0000 means "Success response". > > So my question is what for is first value if we can just check error code? > In Ruby bindings error code is completly ignored. > > Regards, > > -- > Łukasz Oleś > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org