[Spacewalk-list] kickstart.profile.setAdvancedOptions

Paul Robert Marino prmarino1 at gmail.com
Mon Aug 20 23:09:08 UTC 2012


On Mon, Aug 20, 2012 at 10:26 AM, Michael Mraka
<michael.mraka at redhat.com> wrote:
> William_Darton at navyfederal.org wrote:
> % Suffering from Friday blurry eyes here..
> %
> % For this API call  I'm issuing the following..
> %
> %         my ($opt, at options);
also I think this may be wrong looking at the api doc
"
> %         my $opt = { "name"      => "clearpart",
> %                 "arguments"     => "--drives=sda,sdb,sdc,sdd,sde,sdf --all"};
> %         push(@options,$opt);
> %         $client->call('kickstart.profile.setAdvancedOptions',$session,$ksline
> % [0], at options);
"
I think what you want is
$client->call('kickstart.profile.setAdvancedOptions',$session,$ksline[0],[clearpart,"--drives=sda,sdb,sdc,sdd,sde,sdf
--all"]);


>
>
> Shouldn't @options be \@options in
>          $client->call('kickstart.profile.setAdvancedOptions',$session,$ksline[0],\@options);
> ?
>
> (Untested, written from top of my head.)
>
> % Any help with how I can properly format this?
> %
> %
> % Method: setAdvancedOptions
> % Description:
> % Set advanced options for a kickstart profile.
> %
> % Parameters:
> %
> %   • string sessionKey
> %   • string ksLabel
> %   • array:
> %       □ struct - advanced options
> %           ☆ string "name" - Name of the advanced option. Valid Option names:
> %             autostep, interactive, install, upgrade, text, network, cdrom,
> %             harddrive, nfs, url, lang, langsupport keyboard, mouse, device,
> %             deviceprobe, zerombr, clearpart, bootloader, timezone, auth,
> %             rootpw, selinux, reboot, firewall, xconfig, skipx, key, ignoredisk,
> %             autopart, cmdline, firstboot, graphical, iscsi, iscsiname, logging,
> %             monitor, multipath, poweroff, halt, services, shutdown, user, vnc,
> %             zfcp, driverdisk
> %           ☆ string "arguments" - Arguments of the option
> %
> % Returns:
> %
> %   • int - 1 on success, exception thrown otherwise.
> %
> % Will Darton
>
> Regards,
>
>
> --
> Michael Mráka
> Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list