Bladeren bron

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

Srimanth Gunturi 12 jaren geleden
bovenliggende
commit
607d7d4a24
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      ambari-web/app/controllers/wizard/step9_controller.js

+ 5 - 1
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