ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject [1/2] ambari git commit: AMBARI-9986 Upgrade from 1.6.1: Host page does not load. (ababiichuk)
Date Mon, 09 Mar 2015 20:06:22 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 99995afc3 -> bc7ff9ea5


AMBARI-9986 Upgrade from 1.6.1: Host page does not load. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: bc7ff9ea58d27b859d0aabc3aadfac802c87d3d1
Parents: 4e81633
Author: aBabiichuk <ababiichuk@hortonworks.com>
Authored: Mon Mar 9 20:47:20 2015 +0200
Committer: aBabiichuk <ababiichuk@hortonworks.com>
Committed: Mon Mar 9 22:06:09 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/bc7ff9ea/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 f09da5d..4ce260c 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -111,7 +111,8 @@ App.hostsMapper = App.QuickDataMapper.create({
 
         if (App.get('supports.stackUpgrade')) {
           var currentVersion = item.stack_versions.findProperty('HostStackVersions.state',
'CURRENT');
-          var currentVersionNumber = Em.get(currentVersion.repository_versions[0], 'RepositoryVersions.repository_version');
+          var currentVersionNumber = currentVersion && currentVersion.repository_versions
+            ? Em.get(currentVersion.repository_versions[0], 'RepositoryVersions.repository_version')
: '';
           item.stack_versions.forEach(function (stackVersion) {
             stackVersion.host_name = item.Hosts.host_name;
             stackVersion.is_visible = stringUtils.compareVersions(Em.get(stackVersion.repository_versions[0],
'RepositoryVersions.repository_version'), currentVersionNumber) >= 0


Mime
View raw message