From: rettenbe Date: Tue, 4 Nov 2008 15:44:34 +0000 (+0000) Subject: update testing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dd8a19ed8eb18e589bf8efc8385d4a00f6b74623;p=gosa.git update testing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12901 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index d4f321b7d..aaec74eff 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -790,11 +790,6 @@ sub get_available_kernel { return ( $out_msg ); } - my %data = ( 'macaddress' => \@{$msg_hash->{macaddress}} ); - my $wake_msg = &build_msg("trigger_wake", "GOSA", "KNOWN_SERVER", \%data); - &main::server_server_com::trigger_wake($msg, $msg_hash, $session_id); - - sub trigger_activate_new { my ($msg, $msg_hash, $session_id) = @_; @@ -814,7 +809,7 @@ sub trigger_activate_new { my %data = ( 'macaddress' => $mac ); my $wake_msg = &build_msg("trigger_wake", "GOSA", "KNOWN_SERVER", \%data); &main::server_server_com::trigger_wake($msg, $msg_hash, $session_id); - my $sql_statement= "SELECT * FROM $known_server_tn"; + my $sql_statement= "SELECT * FROM $main::known_server_tn"; my $query_res = $main::known_server_db->select_dbentry( $sql_statement ); while( my ($hit_num, $hit) = each %{ $query_res } ) { my $host_name = $hit->{hostname}; @@ -902,8 +897,8 @@ sub trigger_activate_new { } elsif ($ldap_mesg->count == 0) { &main::daemon_log("$session_id WARNING: No System with mac address '$mac' was found in base '".$main::ldap_base."'! Re-queuing job.", 4); my $sql_statement = "UPDATE ".$main::job_queue_tn. - ." SET status='waiting', timestamp = '".(&calc_timestamp(&get_time(), 'plus', 60))."' ". - ." WHERE id = $jobdb_id"; + " SET status='waiting', timestamp = '".(&calc_timestamp(&get_time(), 'plus', 60))."' ". + " WHERE id = $jobdb_id"; $main::job_db->exec_statement($sql_statement); return undef; }