summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb44e4e)
raw | patch | inline | side by side (parent: eb44e4e)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 May 2011 14:48:08 +0000 (14:48 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 May 2011 14:48:08 +0000 (14:48 +0000) |
When querying gosa for install jobs, test weither there is
already a mac defined for our workstation. Otherwise we end
up checking against all currently running installations.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20902 594d385d-05f5-0310-b6e9-bd551577e9d8
already a mac defined for our workstation. Otherwise we end
up checking against all currently running installations.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20902 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
index 7d516ab70879585ab604401e4a6622fab83c403c..953f106c311db49b99096d4b489e4fc5e91d85cb 100644 (file)
if(class_available("gosaSupportDaemon") && class_available("DaemonEvent")){
$o = new gosaSupportDaemon();
$e_types = DaemonEvent::get_event_types(USER_EVENT | SYSTEM_EVENT | HIDDEN_EVENT);
- $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress));
+ $evts = array();
+ if (tests::is_mac($this->netConfigDNS->macAddress)) {
+ $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress));
+ }
foreach($evts as $evt){
if(isset($e_types['QUEUED'][$evt['HEADERTAG']]) && $evt['STATUS'] == "processing" &&
$e_types['QUEUED'][$evt['HEADERTAG']] == "DaemonEvent_reinstall"){