Code

Fix LHM #8687
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jun 2013 11:17:52 +0000 (11:17 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jun 2013 11:17:52 +0000 (11:17 +0000)
Add returned message from set_activated_for_installation method to list
of messages to return from trigger_action_reinstall callback. Implicitly
activate clients when installing.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@21235 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-si/server/events/gosaTriggered.pm

index bcd8c4973579ebe7e6ad9ff828e680c30c772e91..f72d5798b68e3aa4ee9dda053a0c627c0ec97421 100644 (file)
@@ -646,13 +646,15 @@ sub trigger_action_reinstall {
 
     &main::change_fai_state('reinstall', \@{$msg_hash->{macaddress}}, $session_id);
     &main::change_goto_state('active', \@{$msg_hash->{macaddress}}, $session_id);
+    my @out_msg_l = &set_activated_for_installation($msg, $msg_hash, $session_id);
 
     my %data = ( 'macaddress'  => \@{$msg_hash->{macaddress}} );
     my $wake_msg = &build_msg("trigger_wake", "GOSA", "KNOWN_SERVER", \%data);
     # invoke trigger wake for this gosa-si-server
     &main::server_server_com::trigger_wake($msg, $msg_hash, $session_id);
 
-    my @out_msg_l = ($wake_msg, $msg);  
+    push(@out_msg_l, $wake_msg);
+    push(@out_msg_l, $msg);
     return @out_msg_l;
 }