Code

set status 'goto-activation' in job queue for installing hosts
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 09:58:08 +0000 (09:58 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 09:58:08 +0000 (09:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9892 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/clMessages.pm

index fdb5a63884b6e693cecbacdded7441f308c95840..2a23f355983376185b340f755a267753354e26d6 100644 (file)
@@ -14,6 +14,7 @@ my @events = (
     "LOGOUT",
     "CURRENTLY_LOGGED_IN",
     "save_fai_log",
+       "goto-activation-start",
     );
 @EXPORT = @events;
 
@@ -73,6 +74,25 @@ 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 save_fai_log {
     my ($msg, $msg_hash, $session_id) = @_;
     my $header = @{$msg_hash->{'header'}}[0];