----- "Satoru SATOH" <[email protected]> wrote: > 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.
Hey Satoru, contrib will be the right place for your script. :-) I'd just ask you to think out a different name for you script, because we already have spacewalk-api in spacewalk-utils package and update your script accordingly. Then I'll be happy yo commit your script. Best Regards, Tomas -- Tomas Lestach RHN Satellite Engineering, Red Hat > 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 _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
