summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f756366)
raw | patch | inline | side by side (parent: f756366)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Mar 2008 07:39:05 +0000 (07:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Mar 2008 07:39:05 +0000 (07:39 +0000) |
-Use SI server for FAI classes
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9952 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9952 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 6e3c553018d2a95818e76e005a6897064b6b5a25..5485aaafb4550816e3d6976513b4ec7395c22b56 100644 (file)
plugin::save();
unset( $this->attrs['FAIrelease'] );
-
$str = "";
/* Skip FAI attribute handling if not necessary */
if($this->fai_activated){
if($this->FAIdebianMirror == "inherited"){
- $this->attrs['FAIclass'] = $this->attrs['FAIrelease'] = $this->attrs['FAIdebianMirror'] = array();
+ $this->attrs['FAIclass'] = $this->attrs['FAIrelease'] = $this->attrs['FAIdebianMirror'] = array();
}else{
foreach($this->FAIclass as $class){
$str .= $class." ";
}
- $str .= ":" . $this->FAIrelease;
- $this->attrs['FAIclass']= "";
- $this->attrs['FAIclass']= trim($str);
-
+ $str = trim($str);
if(empty($this->attrs['FAIclass'])){
$this->attrs['FAIclass'] = array();
+ }else{
+ $this->attrs['FAIclass']= $str.":".$this->FAIrelease;
}
}
}
-
+
/* Add missing arrays */
foreach (array("gotoFilesystem", "gotoAutoFs", "gotoModules") as $val){
if (isset ($this->$val) && count ($this->$val) != 0){
*/
function update_fai_cache($first_call = FALSE)
{
- $force = TRUE;
+ $force = FALSE;
$start = microtime(TRUE);
*/
$o_queue = new gosaSupportDaemon();
$tmp = $o_queue->FAI_get_classes($release);
+ $this->cache['CLASSES'][$release] = array();
if($o_queue->is_error()){
msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
}else{
foreach($tmp as $entry){
- $this->cache['CLASSES'][$release][$entry['CLASS']] = $this->analyse_fai_object($entry);
+ $class = $entry['CLASS'];
+ $this->cache['CLASSES'][$release][$class] = $this->analyse_fai_object($entry);
}
}
-
/* Add object caught from external hook
*/
$lines= $this->GetHookElements();
if($release_c == $release){
$this->cache['SERVERS'][$url][$release_c]=$release_c;
$this->cache['SERVERS']['auto'][$release_c]=$release_c;
- foreach ($classes as $class){
+ foreach ($classes_c as $class){
if ($class != ""){
$this->cache['CLASSES'][$release_c][$class]= array();
}
}
}
}
+# echo sprintf("Took %.6f <br> ",microtime(1) - $start);
}