summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 184fd2b)
raw | patch | inline | side by side (parent: 184fd2b)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Dec 2008 09:10:28 +0000 (09:10 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Dec 2008 09:10:28 +0000 (09:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13298 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
index 4c0f52cccb818a471c567772cfa93af983a39bba..bbb1c33149702dc942b5969b93c5af8ecf8c3452 100644 (file)
my $res = $main::job_db->exec_statement($sql_statement);
}
+ # If a client gets a 'set_activated_for_installation' msg, always deliver a fresh 'new_ldap_config'
+ # just for backup and robustness purposes
+ my $ldap_out_msg = &ClientPackages::new_ldap_config($mac, $session_id);
+ push(@out_msg_l, $ldap_out_msg);
+
# create set_activated_for_installation message for delivery
my $out_hash = &create_xml_hash("set_activated_for_installation", $source, $target);
if( defined $jobdb_id ) {
# Create delivery list
my @out_msg_l;
- # Set job to done
- $main::job_db->exec_statement("UPDATE jobs SET status = 'done' WHERE id = $jobdb_id");
+ # Set job to done
+ $main::job_db->exec_statement("UPDATE jobs SET status = 'done' WHERE id = $jobdb_id");
- # Add new_ldap_config message to delivery list
- my $ldap_out_msg = &ClientPackages::new_ldap_config($mac, $session_id);
- push(@out_msg_l, $ldap_out_msg);
+ # create set_activated_for_installation message for delivery
+ my $out_hash = &create_xml_hash("set_activated_for_installation", $source, $target);
+ my $out_msg = &create_xml_string($out_hash);
+ push(@out_msg_l, $out_msg);
- # create set_activated_for_installation message for delivery
- my $out_hash = &create_xml_hash("set_activated_for_installation", $source, $target);
- my $out_msg = &create_xml_string($out_hash);
- push(@out_msg_l, $out_msg);
+ # Return delivery list of messages
+ return @out_msg_l;
- return @out_msg_l;
} else {
&main::daemon_log("$session_id WARNING: Activating system with mac address '$mac' failed! Re-queuing job.", 4);
$main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting' WHERE id = $jobdb_id");