Satellite API kickstart.profile.setVariables rounds values
Issue
- Red Hat Satellite 5.6 seems to round decimal values when calling the kickstart.profile.setVariables API method using the perl Frontier client:
my $value = $ARGV[0];
my $client = new Frontier::Client(url => "http://$host/rpc/api");
my $session = $client->call('auth.login', $user, $pass);
my %newvars = ('dns' => 'dns',
'SPACEWALK_registration_type' => 'reactivation',
'org' => '1',
'gw' => "gw",
'ip' => "ip",
'netmask' => "net",
'hostname' => "blah.foo.bar.org",
'release' => $value,
);
my $variables = $client->call('kickstart.profile.setVariables', $session, $ksprofile, \%newvars);
- In the above example if the user supplies "5.10" for the incoming value the value is changed to "5.1" before reaching the Satellite
Environment
- Red Hat Satellite 5.6
- Red Hat Satellite 5.5
- Red Hat Satellite 5.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
