Repository: ambari Updated Branches: refs/heads/trunk 64a65149f -> 5bf105f75
AMBARI-6477 AddHost Wizard: error for existing host is not present. (Max Shepel via ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5bf105f7 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5bf105f7 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5bf105f7 Branch: refs/heads/trunk Commit: 5bf105f75b876e1bf57c9b35f7195226184c01fd Parents: 64a6514 Author: atkach <[email protected]> Authored: Thu Jul 10 14:58:44 2014 +0300 Committer: aBabiichuk <[email protected]> Committed: Mon Jul 14 18:33:21 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step2_controller.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5bf105f7/ambari-web/app/controllers/wizard/step2_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step2_controller.js b/ambari-web/app/controllers/wizard/step2_controller.js index a7ecdec..747d75e 100644 --- a/ambari-web/app/controllers/wizard/step2_controller.js +++ b/ambari-web/app/controllers/wizard/step2_controller.js @@ -263,14 +263,13 @@ App.WizardStep2Controller = Em.Controller.extend({ this.set('hasSubmitted', true); this.checkHostError(); - if (this.get('hostsError') || this.get('sshUserError') || this.get('sshKeyError')) { - return false; - } - this.updateHostNameArr(); if (!this.get('hostNameArr.length')) { this.set('hostsError', Em.I18n.t('installer.step2.hostName.error.already_installed')); + } + + if (this.get('hostsError') || this.get('sshUserError') || this.get('sshKeyError')) { return false; }
