From 9a607b65e9c3c7c852499578c9e7cec61c8120c4 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 2 Sep 2008 13:18:34 +0000 Subject: [PATCH] bugfix: no more warnings while looking for opsi hosts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12345 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/gosaTriggered.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index fc1a84d59..1e3b3c4ea 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -1138,7 +1138,7 @@ sub get_hosts_with_module { } # Check localhost for module_name - if (exists %{@{$main::known_modules->{'GosaPackages'}}[2]}->{$module_name}) { + if (exists @{$main::known_modules->{'GosaPackages'}}[2]->{$module_name}) { my ($remote_ip, $remote_port) = split(/:/, $source); my $local_mac = &get_local_mac_for_remote_ip($remote_ip); &add_content2xml_hash($out_hash, "host", $local_mac); @@ -1148,7 +1148,7 @@ sub get_hosts_with_module { my $sql = "SELECT * FROM $main::known_server_tn WHERE loaded_modules LIKE '%$module_name%'"; my $res = $main::known_server_db->select_dbentry($sql); while (my ($hit_id, $hit_hash) = each %$res) { - &add_content2xml_hash($out_hash, "host", %$hit_hash->{'macaddress'}); + &add_content2xml_hash($out_hash, "host", $hit_hash->{'macaddress'}); } return (&create_xml_string($out_hash)); -- 2.30.2