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:51:40 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.1 2b25bf6ac -> e7f7897da


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

Branch: refs/heads/branch-1.6.1
Commit: e7f7897da6f5ab0aaab498b56a0aaf17d3f25bad
Parents: 2b25bf6
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Thu Jun 26 14:51:29 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Thu Jun 26 14:51:29 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/e7f7897d/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