I updated my script [1] and now it's possible to call a API with
multiple different arguments at a time.
example. Get some errata synopsis gotten from RHN at once.
./spacewalk-api.py --list-args RHSA-2010:0360,RHSA-2010:0361 \
-F "%(errata_synopsis)s" errata.getDetails
BTW, I want to contribute and get it merged into somewhere in spacewalk
repository (contrib?) if possible. Could you someone please take a look
at it?
[1] http://github.com/ssato/misc/blob/master/spacewalk-api.py
- satoru
On Sun, Apr 18, 2010 at 11:23:44PM +0900, Satoru SATOH wrote:
> Hello,
>
>
> I wrote a small python script to call spacewalk/rhn API from command
> line just like utils/spacewalk-api does.
>
> It has some nifty features IMO and perhaps might be useful for others.
>
>
> Features of my script:
>
> * Api arguements can be passed from command line.
>
> * Default result format is JSON; it's pretty easy to customize output
> format as needed.
>
> * Utilize config file to set authentication parameters to cut out
> the need of specifying these with command line options or typing
> these everytime.
>
> * Query results are cached by default. It should be first to get
> the results if same api is called with same arguments next time.
>
>
> Download: http://github.com/ssato/misc/blob/master/spacewalk-api.py
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel