Jesus M. Rodriguez wrote:
On Tue, Sep 30, 2008 at 11:38 AM, Miroslav Suchý <[EMAIL PROTECTED]> wrote:
In Spacewalk 0.2 the api call api.getVersion return string 0.2.
I think that is is bad and we should return to 5.something. Why?
Because some satellite scripts may check, if we have sufficient api version.
Now those scripts have to be rewritten.
The api returns the value from rhn.conf if the version in rhn.conf is
0.2, that's what it returns. That same value is used to display in the
webui.

So what problem are we fixing? did this break anyone? or just
potential for breakage.

It was used in rhn-proxy-activate. The API, which proxy need changed between 3.0 and 3.1 and there was check if api > 3.0. We had at least one case. I just removed that check since nobody has 3.0 or older.

So now it is potential for breakage. But not just for past written scripts. But in future. For example we recently change several namespaces in API and I can imagine, that people in future will check what version of API they have. And you really can not distinguish satellite from spacewalk.
--
Miroslav Suchy
RHN Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to