[one-users] OCA 3.0 - return values
Łukasz Oleś
lukaszoles at gmail.com
Mon Aug 15 22:48:55 PDT 2011
Hi Carlos,
thx for clarification.
2011/8/8 Carlos Martín Sánchez <cmartin at opennebula.org>:
> 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 | cmartin at opennebula.org
>
>
>
> 2011/8/6 Łukasz Oleś <lukaszoles at 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 at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
--
Łukasz Oleś
More information about the Users
mailing list