From ed91e18dc0bb59b019f2930b96bf47417a49289e Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 15 Apr 2008 11:20:36 +0000 Subject: [PATCH] Fixed answer message. Fixed syntax. closes #417 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10459 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/gosaTriggered.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index 80f793e8d..d9df28435 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -676,12 +676,13 @@ sub get_available_kernel { # Get Kernel packages for release my $sql_statement = "SELECT * FROM $main::packages_list_tn WHERE distribution='$release' AND package LIKE 'linux\-image\-%'"; my $res_hash = $main::packages_list_db->select_dbentry($sql_statement); + my %data; + my $i=1; + foreach my $package (keys %{$res_hash}) { - push @kernel, %{$res_hash}->{$package}->{'package'}; + $data{"answer".$i++}= ${$res_hash}{$package}->{'package'}; } - my %data = ('available-kernel' => \@kernel); - my $out_msg = &build_msg("get_available_kernel", $target, "GOSA", \%data); return ( $out_msg ); } -- 2.30.2