summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1805d05)
raw | patch | inline | side by side (parent: 1805d05)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Mar 2008 15:09:40 +0000 (15:09 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Mar 2008 15:09:40 +0000 (15:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9945 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/SIPackages.pm | patch | blob | history |
index f925b86ee7df06ec98346e3a519be6457402fe69..daaa161e18e40c6af1f200de1987d0492d699f9a 100644 (file)
if($mesg->count() == 0) {
&main::daemon_log("Host was not found in LDAP!", 1);
+
+ # set status = hardware_detection at jobqueue if entry exists
+ my $func_dic = {table=>$main::job_queue_tn,
+ primkey=>['id'],
+ timestamp=>&get_time,
+ status=>'processing',
+ result=>'none',
+ progress=>'hardware-detection',
+ headertag=>'trigger_action_reinstall',
+ targettag=>$address,
+ xmlmessage=>'none',
+ macaddress=>$macaddress,
+ };
+ my $hd_res = $main::job_db->add_dbentry($func_dic);
+ &main::daemon_log("$session_id INFO: add '$macaddress' to job queue as an installing job", 5);
+
} else {
my $entry= $mesg->entry(0);
my $dn= $entry->dn;
# Nothing to do
return;
}
- } else {
- &main::daemon_log("$session_id WARNING: there is no 'gotoHardwareChecksum' found in LDAP for host '$macaddress'", 3);
- # Noting to do, only trigger hardware detection if no entry found in LDAP
- return;
- }
+ }
}
# Assemble data package
$data{'goto_secret'}= $goto_secret;
}
- # set status = hardware_detection at jobqueue if entry exists
- my $func_dic = {table=>$main::job_queue_tn,
- primkey=>['id'],
- timestamp=>&get_time,
- status=>'processing',
- result=>'none',
- progress=>'hardware-detection',
- headertag=>'trigger_action_reinstall',
- targettag=>$address,
- xmlmessage=>'none',
- macaddress=>$macaddress,
- };
- my $hd_res = $main::job_db->add_dbentry($func_dic);
- &main::daemon_log("$session_id INFO: add '$macaddress' to job queue as an installing job", 5);
-
# Send information
-
- # log info not needed
- #&main::daemon_log("$session_id INFO: Send detect_hardware message to $address", 5);
return &build_msg("detect_hardware", $server_address, $address, \%data);
}