From: hickert Date: Thu, 9 Oct 2008 09:35:33 +0000 (+0000) Subject: bugfix: get_host_with_module, create mas at the right position X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2cff8ee190d56568b2bd3ce4cda81a3bb6cbc5dd;p=gosa.git bugfix: get_host_with_module, create mas at the right position git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12651 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index a538f366c..5fdd546e5 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -1198,6 +1198,8 @@ sub get_hosts_with_module { return (&create_xml_string($out_hash)); } + my $out_msg = &create_xml_string($out_hash); + # Check localhost for module_name if (exists @{$main::known_modules->{'GosaPackages'}}[2]->{$module_name}) { my ($local_ip, $local_port) = split(/:/, $target); @@ -1209,9 +1211,6 @@ sub get_hosts_with_module { $out_msg =~ s/<\/xml>/\n $host_infos <\/answer0> \n <\/xml>/; } - - my $out_msg = &create_xml_string($out_hash); - # Search for opsi hosts in server_db my $sql = "SELECT * FROM $main::known_server_tn WHERE loaded_modules LIKE '%$module_name%'"; my $res = $main::known_server_db->select_dbentry($sql);