ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject [2/2] ambari git commit: AMBARI-9986 Upgrade from 1.6.1: Host page does not load. (ababiichuk)
Date Mon, 09 Mar 2015 20:07:00 GMT
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/c13e648f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c13e648f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c13e648f

Branch: refs/heads/branch-2.0.0
Commit: c13e648fd6b8571697523ae5f577787a0a961e3f
Parents: 0fca70f
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:47 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/c13e648f/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