Evan,

You need to put a \ in front of the %Errata_info. That should take care of it.

$SWclient->call('errata.create',$SWsession,
\%Errata_Info,@RHNBugs,@RHNKeywords ,@Packages,$SWPublish,@Channels);

or use python :)

jesus


On Tue, Sep 15, 2009 at 9:59 PM, Jesus M. Rodriguez <[email protected]> wrote:
> On Tue, Sep 15, 2009 at 1:14 PM, Frey, Evan <[email protected]> 
> wrote:
>> Link to paste bin
>> http://pastie.org/617651
>
> Ok I think I see the problem. For some reason the perl script is not
> creating a struct
> element for the hash/dictionary/map (whatever it's called in perl). It
> is creating a bunch
> of string params.
>
> <param><value><string>advisory_name</string></value></param>
> <param><value><string>RHSA-2009:1238</string></value></param>
> <param><value><string>description</string></value></param>
>
> What this means is that the API handlers will try to find an
> errata.create method that
> takes in a bunch of Strings as parameters, which it will never find.
>
> I created  a similar python client and here is the output. I
> highlighted the struct
> element in the pastebin.
>
> http://pastie.org/618297
>
> This is the script (it does not contain all of the required
> information), so there isn't
> anything special i.e. I just created a dictionary and it worked.
>
> http://pastie.org/618298
>
> I'll take another look at a perl script.
>
> jesus
>

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

Reply via email to