Satellite API kickstart.profile.setVariables rounds values

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content