From 73dd4a9f5059813b21df77fa0b1c2f140e5f0803 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 13 Nov 2009 14:21:14 +0000 Subject: [PATCH] Move information to 90_gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14811 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/opsi_com.pm | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/gosa-si/server/events/opsi_com.pm b/gosa-si/server/events/opsi_com.pm index 5e423d9ff..caeb22c61 100644 --- a/gosa-si/server/events/opsi_com.pm +++ b/gosa-si/server/events/opsi_com.pm @@ -870,10 +870,12 @@ sub opsi_list_clients { params => [ ], id => 1, }; + my $res = $main::opsi_client->call($main::opsi_url, $callobj); if (not &check_opsi_res($res)){ foreach my $host (@{$res->result}){ my $item= "\n".$host->{'hostId'}.""; + $item.= "".xml_quote($host->{'macAddress'}).""; if (defined($host->{'description'})){ $item.= "".xml_quote($host->{'description'}).""; } @@ -884,25 +886,6 @@ sub opsi_list_clients { $item.= "".xml_quote($host->{'lastSeen'}).""; } - $callobj = { - method => 'getIpAddress', - params => [ $host->{'hostId'} ], - id => 1, - }; - my $sres= $main::opsi_client->call($main::opsi_url, $callobj); - if ( not &check_opsi_res($sres)){ - $item.= "".xml_quote($sres->result).""; - } - - $callobj = { - method => 'getMacAddress', - params => [ $host->{'hostId'} ], - id => 1, - }; - $sres= $main::opsi_client->call($main::opsi_url, $callobj); - if ( not &check_opsi_res($sres)){ - $item.= "".xml_quote($sres->result).""; - } $item.= ""; $xml_msg=~ s%%$item%; } -- 2.30.2