ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-13015. AHW step7 shows invalid number of hosts (onechiporenko)
Date Fri, 04 Sep 2015 14:35:28 GMT
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 <onechiporenko@apache.org>
Authored: Fri Sep 4 17:31:55 2015 +0300
Committer: Oleg Nechiporenko <onechiporenko@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',


Mime
View raw message