summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2171f96)
raw | patch | inline | side by side (parent: 2171f96)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Mar 2008 09:49:15 +0000 (09:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Mar 2008 09:49:15 +0000 (09:49 +0000) |
-Fixed daemon stuff
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9955 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9955 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 c7812ae58e10707f897ec59846970a666c8ea6b4..6f66628f259812f23ce1ee07b7ec09f637965d06 100644 (file)
if(!isset($this->cache['SERVERS'][$this->FAIdebianMirror][$this->FAIrelease])){
$new_release = key($this->cache['SERVERS'][$this->FAIdebianMirror]);
if(count($this->FAIclass)){
- msg_dialog::display(_("Error"), sprintf(_("FAI release '%s' is not available on mirror '%s' - setting to release '%s'!"), $this->FAIrelease, $this->FAIdebianmirror), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), sprintf(_("FAI release '%s' is not available on mirror '%s' - setting to release '%s'!"), $this->FAIrelease, $this->FAIdebianMirror,$new_release), ERROR_DIALOG);
}
$this->FAIrelease = $new_release;
$this->cache =array();
$smarty->assign("fai_activated",$this->fai_activated);
/* Create FAI output */
+ $this->update_fai_cache();
if($this->si_fai_action_failed){
$smarty->assign("si_fai_action_failed",$this->si_fai_action_failed);
}elseif($this->fai_activated){
$str = "";
/* Skip FAI attribute handling if not necessary */
- if($this->fai_activated){
+ if($this->fai_activated && !$this->si_fai_action_failed){
if($this->FAIdebianMirror == "inherited"){
$this->attrs['FAIclass'] = $this->attrs['FAIrelease'] = $this->attrs['FAIdebianMirror'] = array();
}else{
if(empty($this->attrs['FAIclass'])){
$this->attrs['FAIclass'] = array();
}else{
- $this->attrs['FAIclass']= $str.":".$this->FAIrelease;
+ $this->attrs['FAIclass']= $str." :".$this->FAIrelease;
}
}
}
/* Skip FAI attribute handling if not necessary */
- if($this->fai_activated){
+ if($this->fai_activated && !$this->si_fai_action_failed){
$ldap->cat($this->dn,array("FAIstate"));
$checkFAIstate = $ldap->fetch();
function update_fai_cache($first_call = FALSE)
{
$force = FALSE;
- $this->si_fai_action_failed = false;
+ $this->si_fai_action_failed = FALSE;
$start = microtime(TRUE);
if($o_queue->is_error()){
msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
$this->si_fai_action_failed = TRUE;
+ $this->cache = array();
return;
}else{
foreach($tmp as $entry){
$this->cache['CLASSES'][$release] = array();
if($o_queue->is_error()){
msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
- $this->si_fai_action_failed = TRUEi;
+ $this->si_fai_action_failed = TRUE;
+ $this->cache=array();
return;
}else{
foreach($tmp as $entry){