Updated Branches: refs/heads/branch-1.2.5 bcadb5d90 -> 552fe42e1
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/552fe42e Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/552fe42e Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/552fe42e Branch: refs/heads/branch-1.2.5 Commit: 552fe42e1db09cbc98a6b5715b9140c22f3a88ab Parents: bcadb5d Author: Srimanth Gunturi <[email protected]> Authored: Tue Jul 16 18:06:03 2013 -0700 Committer: Srimanth Gunturi <[email protected]> Committed: Tue Jul 16 18:09:25 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/552fe42e/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
