Description of problem: The deleteSystems method description is "Delete systems given a list of system ids." However, the method can only handle a single system ID at a time. Either the description (and name?) or the functionality need to change. Version-Release number of selected component (if applicable): 5.0.5 How reproducible: Always Steps to Reproduce: 1. Run attached script 2. Note: systemid1 and systemid2 should be the ids of systems you don't mind deleting. Actual results: Fault returned from XML RPC Server, fault code -1: Could not find method deleteSystems in class class com.redhat.rhn.frontend.xmlrpc.system.SystemHandler Expected results: script returns and system profiles are deleted Additional info: It currently works fine if you only give it one system id at a time. However the description says that you should be able to give it a list of indeterminate length.
Created attachment 308277 [details] RHN API method caller
Nope, not a bug. The API expects list as the last argument, therefore Perl client code has to be adjusted like this: # arbitrary long list of system IDs my @systemidlist = (1011536347, 1011834030); my $result = $client->call('system.delete_systems', $session, \@systemidlist); ...