ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-21534 Spinner doesnt disappear and hosts not loading even after 5 minutes. (atkach)
Date Thu, 20 Jul 2017 11:52:16 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 f9ce03e16 -> 4078c4867


AMBARI-21534 Spinner doesnt disappear and hosts not loading even after 5 minutes. (atkach)


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

Branch: refs/heads/branch-2.5
Commit: 4078c48679aaea2f4d8636d141c2c1ca8cb68145
Parents: f9ce03e
Author: Andrii Tkach <atkach@apache.org>
Authored: Thu Jul 20 14:50:38 2017 +0300
Committer: Andrii Tkach <atkach@apache.org>
Committed: Thu Jul 20 14:50:38 2017 +0300

----------------------------------------------------------------------
 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/4078c486/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 4d6618f..5042e67 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -172,7 +172,7 @@ App.hostsMapper = App.QuickDataMapper.create({
         for (var j = 0; j < item.stack_versions.length; j++) {
           var stackVersion = item.stack_versions[j];
           var versionNumber = Em.get(stackVersion.repository_versions[0], 'RepositoryVersions.repository_version');
-          var isDifferentStack = stackVersion.HostStackVersions.stack !== currentVersion.HostStackVersions.stack;
+          var isDifferentStack = currentVersion && (stackVersion.HostStackVersions.stack
!== currentVersion.HostStackVersions.stack);
           var isCompatible = App.RepositoryVersion.find(Em.get(stackVersion.repository_versions[0],
'RepositoryVersions.id')).get('isCompatible');
           stackVersion.host_name = item.Hosts.host_name;
           if (isDifferentStack && !isCompatible) {


Mime
View raw message