Ver código fonte

AMBARI-510. Modify the router to force redirection to 'Add Nodes Progress' popup (Contributed by Yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1347358 13f79535-47bb-0310-9956-ffa450edef68
Vikram Dixit K 13 anos atrás
pai
commit
58aa2654dc
2 arquivos alterados com 9 adições e 0 exclusões
  1. 2 0
      CHANGES.txt
  2. 7 0
      hmc/html/head.inc

+ 2 - 0
CHANGES.txt

@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-510. Modify the router to force redirection to "Add Nodes Progress" popup (Yusaku via Vikram)
+
   AMBARI-508. Support Resume For Add Nodes (Varun via Vikram)
 
   AMBARI-506. Do not use epel in local yum repo installs (Hitesh via Vikram)

+ 7 - 0
hmc/html/head.inc

@@ -82,6 +82,13 @@ if (sizeof($clusters) == 0) {
         }     
         $clusterState = 'DEPLOYMENT_IN_PROGRESS';
         break;
+      case 'NODE_ADDITION_IN_PROGRESS':
+        if (!$bypassRouter && $requestPage != 'showDeployAddedNodesProgress.php') {
+          eval(redirectToPage($requestPage, 'showDeployAddedNodesProgress.php'));
+          exit;
+        }     
+        $clusterState = 'NODE_ADDITION_IN_PROGRESS';
+        break;
       case 'SERVICE_MANAGEMENT_IN_PROGRESS':
         if (!$bypassRouter && $requestPage != 'showManageServicesProgress.php') {
           eval(redirectToPage($requestPage, 'showManageServicesProgress.php'));