From edce688fe39e2682fd45ea7f52d505944609faa1 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 17 Mar 2008 10:32:04 +0000 Subject: [PATCH] change 'goto-activation-start' function to 'goto_activation_start' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9893 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/clMessages.pm | 32 +++++++++++++---------------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/gosa-si/server/events/clMessages.pm b/gosa-si/server/events/clMessages.pm index 2a23f3559..dfac67255 100644 --- a/gosa-si/server/events/clMessages.pm +++ b/gosa-si/server/events/clMessages.pm @@ -14,7 +14,7 @@ my @events = ( "LOGOUT", "CURRENTLY_LOGGED_IN", "save_fai_log", - "goto-activation-start", + "goto_activation_start", ); @EXPORT = @events; @@ -74,23 +74,19 @@ sub read_configfile { } -##################### -## under construction -#sub goto-activation-start { -# my ($msg, $msg_hash, $session_id) = @_; -# my $header = @{$msg_hash->{'header'}}[0]; -# my $macaddress = @{$msg_hash->{'macaddress'}}[0]; -# -# my $sql_statement = "UPDATE $main::job_queue_tn ". -# "SET status='processing', progress='goto-activation'". -# "WHERE status='processing' AND macaddress LIKE '$macaddress'"; -# &main::daemon_log("$session_id DEBUG: $sql_statement", 7); -# my $res = $main::job_db->update_dbentry($sql_statement); -# &main::daemon_log("$session_id INFO: '$header' at '$macaddress'", 5); -# -#} -## under construction -##################### +sub goto_activation_start { + my ($msg, $msg_hash, $session_id) = @_; + my $header = @{$msg_hash->{'header'}}[0]; + my $macaddress = @{$msg_hash->{'macaddress'}}[0]; + + my $sql_statement = "UPDATE $main::job_queue_tn ". + "SET status='processing', progress='goto-activation' ". + "WHERE status='processing' AND macaddress LIKE '$macaddress'"; + &main::daemon_log("$session_id DEBUG: $sql_statement", 7); + my $res = $main::job_db->update_dbentry($sql_statement); + &main::daemon_log("$session_id INFO: '$header' at '$macaddress'", 5); + +} sub save_fai_log { -- 2.30.2