ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: AMBARI-2666. Failure in Add Hosts wizard puts Ambari in an unrecoverable state. (srimanth)
Date Wed, 17 Jul 2013 01:12:40 GMT
Updated Branches:
  refs/heads/trunk 35523fca9 -> 607d7d4a2


AMBARI-2666. Failure in Add Hosts wizard puts Ambari in an unrecoverable state. (srimanth)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/607d7d4a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/607d7d4a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/607d7d4a

Branch: refs/heads/trunk
Commit: 607d7d4a24a09fdcadb8b9917842657a346781e2
Parents: 35523fc
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Tue Jul 16 18:06:03 2013 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Tue Jul 16 18:12:18 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step9_controller.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/607d7d4a/ambari-web/app/controllers/wizard/step9_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step9_controller.js b/ambari-web/app/controllers/wizard/step9_controller.js
index bfd0d58..0fea2fe 100644
--- a/ambari-web/app/controllers/wizard/step9_controller.js
+++ b/ambari-web/app/controllers/wizard/step9_controller.js
@@ -26,7 +26,11 @@ App.WizardStep9Controller = Em.Controller.extend({
 
   isSubmitDisabled: function () {
     // return !this.get('isStepCompleted');
-    return !['STARTED','START FAILED'].contains(this.get('content.cluster.status'));
+    var validStates = ['STARTED','START FAILED'];
+    if (this.get('content.controllerName') == 'addHostController') {
+      validStates.push('INSTALL FAILED');
+    }
+    return !validStates.contains(this.get('content.cluster.status'));
   }.property('content.cluster.status'),
 
   // links to previous steps are enabled iff install failed in installer


Mime
View raw message