Code

update: get_hosts_with_module at gosaTriggerd.pm reports results within <answer\d...
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 14:09:42 +0000 (14:09 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 14:09:42 +0000 (14:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12432 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/gosaTriggered.pm

index f1378b700e1f6bb27a431e306cd5ec48d1a65e75..fd0cfcc0c7bb4dbe9d0c6a79dfee74061a9106b7 100644 (file)
@@ -1216,7 +1216,7 @@ sub get_hosts_with_module {
         $out_msg =~ s/<\/xml>/<result>host$hit_id<\/result> <\/xml>/;
         my $host_infos = "<ip>".$hit_hash->{'hostname'}."</ip>";
         $host_infos .= " <mac>".$hit_hash->{'macaddress'}."</mac>"; 
-        $out_msg =~  s/<\/xml>/\n<host$hit_id> $host_infos <\/host$hit_id> \n <\/xml>/;
+        $out_msg =~  s/<\/xml>/\n<answer$hit_id> $host_infos <\/answer$hit_id> \n <\/xml>/;
     }
 
     return $out_msg;