Hello Everybody
I am trying to edit a host using the cobbler API however I get the below error :
---- snip ----
Fault returned from XML RPC Server, fault code 1: exceptions.AttributeError:'NoneType' object has
no attribute 'remote_methods'
---- snip ----
The script I am using is :
---- snip ----
my $conn = Frontier::Client->new( 'url' => "http://xxxx.xxx.xxx.com/cobbler_api" );
my $token = $conn->call("login","$username","$password");
my $object = $conn->call("get_system_handle","$old_hostname", $token);
print Dumper ($object);
$conn->call("modify_system",$object,"name","$new_hostname",$token);
$conn->call("modify_system",$object, "hostname", "$new_hostname", $token);
$conn->call("save_system",$object, $token);
$conn->call("sync",$token);
---- snip ----
Now the print statement gives me the following :
$VAR1 =
'system::old_hostname';
Also, I am able to fetch information about the host using " my $system = $booter->call("get_system","$hash{$temp}{'old_hostname'}" );"
and Dumper($system) , gives me the correct information . I wonder why modify system is not working as expected .
R
Bondie