Author: yusaku
Date: Fri Jan 11 01:49:53 2013
New Revision: 1431797

URL: http://svn.apache.org/viewvc?rev=1431797&view=rev
Log:
AMBARI-1112. Add hosts fails second time around. (Srimanth Gunturi via yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/routes/main.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1431797&r1=1431796&r2=1431797&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jan 11 01:49:53 2013
@@ -675,6 +675,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1112. Add hosts fails second time around. (Srimanth Gunturi via
+  yusaku)
+
   AMBARI-1111. Install wizard step 9 gets stuck at 0% and other issues on
   page refresh. (Srimanth Gunturi via yusaku)
 

Modified: incubator/ambari/trunk/ambari-web/app/routes/main.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/routes/main.js?rev=1431797&r1=1431796&r2=1431797&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/routes/main.js (original)
+++ incubator/ambari/trunk/ambari-web/app/routes/main.js Fri Jan 11 01:49:53 
2013
@@ -148,6 +148,15 @@ module.exports = Em.Route.extend({
     },
 
     addHost:function (router) {
+      if(App.clusterStatus){
+        var currentClusterStatus = App.clusterStatus.get('value');
+        if(currentClusterStatus && 
currentClusterStatus.clusterState=="ADD_HOSTS_COMPLETED_5"){
+          // The last time add hosts ran, it left the status
+          // in this state. We need to clear any previous status
+          // so that the hosts page starts from fresh.
+          currentClusterStatus.clusterState = 'CLUSTER_STARTED_5';
+        }
+      }
       router.transitionTo('hostAdd');
     }
 


Reply via email to