ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-6282. Incorrect hosts count for custom config group after surfing back to Step 7 of Install Wizard (Max Shepel via akovalenko)
Date Thu, 26 Jun 2014 11:50:19 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk ac78a3888 -> 22d0d181d


AMBARI-6282. Incorrect hosts count for custom config group after surfing back to Step 7 of
Install Wizard (Max Shepel via akovalenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/22d0d181
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/22d0d181
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/22d0d181

Branch: refs/heads/trunk
Commit: 22d0d181d99ada472d9a6eb3278eac650296bb79
Parents: ac78a38
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Thu Jun 26 14:47:53 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Thu Jun 26 14:47:53 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/22d0d181/ambari-web/app/controllers/wizard.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard.js b/ambari-web/app/controllers/wizard.js
index 45d1f13..b9aa10c 100644
--- a/ambari-web/app/controllers/wizard.js
+++ b/ambari-web/app/controllers/wizard.js
@@ -598,7 +598,7 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, {
     }
     else {
       serviceConfigGroups.forEach(function(group) {
-        group.hosts.map(function(host_id) {
+        var hostNames = group.hosts.map(function(host_id) {
           for (var i = 0; i < host_names.length; i++) {
             if (hosts[host_names[i]].id === host_id) {
               return host_names[i];
@@ -606,7 +606,7 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, {
           }
           Em.assert('host is missing!!!!', false);
         });
-        Em.set(group, 'hosts', host_names);
+        Em.set(group, 'hosts', hostNames);
       });
     }
     this.set('content.configGroups', serviceConfigGroups);


Mime
View raw message