Repository: ambari Updated Branches: refs/heads/trunk cb3dd00b3 -> 890c27a4f
AMBARI-13015. AHW step7 shows invalid number of hosts (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/890c27a4 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/890c27a4 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/890c27a4 Branch: refs/heads/trunk Commit: 890c27a4f9b6b3f1ba0d21d1942491a98d170707 Parents: cb3dd00 Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Fri Sep 4 17:31:55 2015 +0300 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Fri Sep 4 17:38:25 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step10_controller.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/890c27a4/ambari-web/app/controllers/wizard/step10_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step10_controller.js b/ambari-web/app/controllers/wizard/step10_controller.js index 78df698..f0395ea 100644 --- a/ambari-web/app/controllers/wizard/step10_controller.js +++ b/ambari-web/app/controllers/wizard/step10_controller.js @@ -75,6 +75,9 @@ App.WizardStep10Controller = Em.Controller.extend({ slaveHosts = hostObj.mapProperty('hostName').uniq(); var registeredHosts = App.Host.find().mapProperty('hostName').concat(masterHosts.concat(slaveHosts)).uniq(); var registerHostsStatement = Em.I18n.t('installer.step10.hostsSummary').format(registeredHosts.length); + if (this.get('content.controllerName') === 'addHostController') { + registerHostsStatement = Em.I18n.t('installer.step10.hostsSummary').format(Object.keys(this.get('content.hosts') || {}).length); + } var registerHostsObj = Em.Object.create({ id: 1, color: 'text-info',