You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rz...@apache.org on 2016/04/01 00:39:32 UTC

ambari git commit: AMBARI-15658. If there is a host with no components then host page spins (rzang)

Repository: ambari
Updated Branches:
  refs/heads/trunk d812b1704 -> b0d6a5781


AMBARI-15658. If there is a host with no components then host page spins (rzang)


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

Branch: refs/heads/trunk
Commit: b0d6a57819cfac1d950f1ce7bbde4ef739c90ca8
Parents: d812b17
Author: Richard Zang <rz...@apache.org>
Authored: Thu Mar 31 15:02:57 2016 -0700
Committer: Richard Zang <rz...@apache.org>
Committed: Thu Mar 31 15:38:18 2016 -0700

----------------------------------------------------------------------
 ambari-web/app/mappers/hosts_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b0d6a578/ambari-web/app/mappers/hosts_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/hosts_mapper.js b/ambari-web/app/mappers/hosts_mapper.js
index 3eb99bf..10a9e61 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -159,7 +159,7 @@ App.hostsMapper = App.QuickDataMapper.create({
         var alertsSummary = item.alerts_summary;
         item.critical_warning_alerts_count = alertsSummary ? (alertsSummary.CRITICAL || 0) + (alertsSummary.WARNING || 0) : 0;
         item.cluster_id = clusterName;
-        var existingHost = hostsMap[component.host_name];
+        var existingHost = hostsMap[item.Hosts.host_name];
         // There is no need to override existing index in host detail view since old model(already have indexes) will not be cleared.
         item.index = (existingHost && !json.itemTotal)? existingHost.get('index'): index;