Perl script of getCustomValues API does return proper result

Solution Verified - Updated -

Issue

  • Perl script of getCustomValues API does return proper result
  • The ducumentation for getCustomValues API is not provided correct details about the return value

    #!/usr/bin/perl
    use Frontier::Client;
    
    my $HOST = 'Satellite server name';
    my $user = 'Generic account name';
    my $pass = 'Password for Generic account';
    
    my $client = new Frontier::Client(url => "http://$HOST/rpc/api");
    my $session = $client->call('auth.login',$user, $pass);
    
    my $custom=$client->call('system.getCustomValues', $session,$ID);
    print $custom->{'custom_info_label'}. "\n";
    
    $client->call('auth.logout', $session);
    

Environment

  • Red Hat Network Satellite v 5.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In