Code

Updated workstation Startup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Mar 2008 06:37:11 +0000 (06:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Mar 2008 06:37:11 +0000 (06:37 +0000)
-Added Retry button in case of an error with the si server communication

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10050 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl

index f8b151bebe47e93e90c7586ec96577f84a05a99b..1f7fbf73d7703ce1944f70a26975de208e3c95b8 100644 (file)
@@ -1077,10 +1077,13 @@ class workstartup extends plugin
   function update_fai_cache($first_call = FALSE)
   {
     $force = FALSE;
-    $this->si_fai_action_failed = FALSE;
     if(!$this->si_active) return; 
     $start = microtime(TRUE);  
 
+    if($this->si_fai_action_failed && !isset($_POST['fai_si_retry'])) return;
+
+    $this->si_fai_action_failed = FALSE;
+
     /* Get the list of available servers and their releases. 
      */
     if($force || !isset($this->cache['SERVERS'])){
index 73d0a2f639ce682cd607fd889179a4317380ad4d..6bb8bbc29258fb6d63c94cab81e588cbf06a54bd 100644 (file)
@@ -64,6 +64,7 @@
        {elseif $si_fai_action_failed}
                <b>{msgPool type=siError}</b><br>
                {t}Check if the GOsa support daemon (gosa-si) is running.{/t}
+               <input type='submit' name='fai_si_retry' value="{t}retry{/t}">
        {elseif $fai_activated}
 
                {if $FAIdebianMirror == "inherited"}