Hi all,

First off all, I'm no developer, so please bare with me :)

I'm trying to use the spacewalk api for updating some of our repositories.
I'm running 1.5 nightly with a oracle database backend.

I have found the method called channel.software.updateRepo and I'm trying to
use this in a python script. I can see that the this method needs the
sessionkey and "Long ID" of the repo you want to update.
So from what I can see something like channel.software.updateRepo(key,
longid) should work.

My problem is that I'm not able to figure out how to get the Long ID of the
repo I want to update. Is this the same as the label of the repository? I
have tried to execute it with the label name (which is a string in my case)
but then the script exits with a error like this:

xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: Could not find
method: updateRepo in class:
com.redhat.rhn.frontend.xmlrpc.channel.software.ChannelSoftwareHandler with
params: [java.lang.String, java.lang.String]'>

Can someone confirm if  "long id" is the same as the label of the repo - and
if not, how can I get the "long id" from my repositories?

- Alexander Davidsen
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to