From: janw Date: Tue, 15 Apr 2008 11:20:36 +0000 (+0000) Subject: Fixed answer message. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ed91e18dc0bb59b019f2930b96bf47417a49289e;p=gosa.git Fixed answer message. Fixed syntax. closes #417 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10459 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 ); }