[Spacewalk-list] help with api
wm-lists
wm-lists at nixpeeps.com
Wed Oct 30 13:40:12 UTC 2013
Can you provide the request you are using? I just tested on Satellite 5.5
using the following and it seems to work ok for me
EKEYS = client.activationkey.listActivationKeys(seskey)
for EKEY in EKEYS:
if EKEY.get('description') == KEY_NAME:
print "Getting Key Details" + KEY_NAME
DETAILS =
client.activationkey.getDetails(seskey,EKEY.get('key'))
print DETAILS.get('description') + " " +
DETAILS.get('key') + " " + str(DETAILS.get('usage_limit'))
Getting Key Detailsact-pci-vdc-unit-rhel6-x86_64
act-pci-vdc-unit-rhel6-x86_64 1-act-pci-vdc-unit-rhel6-x86_64 0
complete
Will
On Wed, Oct 30, 2013 at 9:11 AM, Brian Collins <brianc at sedata.com> wrote:
> > I'm trying to use the activationkey.getDetails api call but I always get
> > the error:
> > Fault returned from XML RPC Server, fault code -1:
> > redstone.xmlrpc.XmlRpcFault: unhandled internal exception: Could not
> > find activation key: 42-key-name
> >
> > I have tried several different keys and made sure they show up in
> > response to the activationkey.listActivationKeys call.
> >
> > This is on a satellite 5.4.1 server.
>
> Indeed. I am on Satellite 5.5, and I was able to re-create the problem.
> I even listed all the activation keys (which did list out all my
> activation keys), and tried getDetails and listActivatedSystems on a few of
> them. Same result.
>
> I see nothing in Red Hat's KB about this. I'm probably going to open a
> support case. Since you're using Satellite, you should probably do the
> same.
>
> Brian Collins
> Sr. Systems Engineer
> Southeastern Data Cooperative
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20131030/8c8782dc/attachment.htm>
More information about the Spacewalk-list
mailing list