You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2015/09/04 16:35:28 UTC

ambari git commit: AMBARI-13015. AHW step7 shows invalid number of hosts (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 e18b23743 -> fb3575bfa


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/fb3575bf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fb3575bf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fb3575bf

Branch: refs/heads/branch-2.1
Commit: fb3575bfa0db6df895b0b98a1e9c2cef6c4835a0
Parents: e18b237
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri Sep 4 17:31:55 2015 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Fri Sep 4 17:35:13 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/fb3575bf/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',