[Spacewalk-list] channel.software.create issues with gpgkey
Jan Pazdziora
jpazdziora at redhat.com
Mon Aug 13 08:48:53 UTC 2012
On Fri, Aug 10, 2012 at 01:51:53PM -0400, William_Darton at navyfederal.org wrote:
> I'm working on some Satellite population scripts and I'm suffering from
> writers block I guess. I'm trying to create a channel using the API and
> import the GPG url. I'm having some issues with the gpgKey structure.
> What format is expected here? I'm using perl..
>
> Thanks for any help.. my call looks as follows
>
> $client->call('channel.software.create',
> $session,
> lab-rhel5-x86_64',
> 'LAB RHEL5 x86_64',
> 'LAB RHEL5 x86_64',
> 'channel-x86_64',
> '',
> 'sha1',
> THIS IS THE PART I CAN"T FIGURE OUT);
>
> struct - gpgKey
> string "url" - GPG key URL
> string "id" - GPG key ID
> string "fingerprint" - GPG key Fingerprint
I would use hash:
$client->call('channel.software.create',
$session,
lab-rhel5-x86_64',
'LAB RHEL5 x86_64',
'LAB RHEL5 x86_64',
'channel-x86_64',
'',
'sha1',
{
url => 'file:///the/path/and/file',
id => '28392839',
'fingeprint' => 'whatever is the fingerprint'
},
);
Untested.
--
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat
More information about the Spacewalk-list
mailing list