You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2016/02/27 00:05:07 UTC
ambari git commit: AMBARI-15209. UI Displays Incorrect Information On
Host Repos Installed.(xiwang)
Repository: ambari
Updated Branches:
refs/heads/trunk 1d7beb356 -> 3a5fc0261
AMBARI-15209. UI Displays Incorrect Information On Host Repos Installed.(xiwang)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3a5fc026
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3a5fc026
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3a5fc026
Branch: refs/heads/trunk
Commit: 3a5fc0261e94a67749ffd4df46cd0ea53a63c0b7
Parents: 1d7beb3
Author: Xi Wang <xi...@apache.org>
Authored: Fri Feb 26 14:27:49 2016 -0800
Committer: Xi Wang <xi...@apache.org>
Committed: Fri Feb 26 15:04:40 2016 -0800
----------------------------------------------------------------------
ambari-web/app/mappers/stack_version_mapper.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3a5fc026/ambari-web/app/mappers/stack_version_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/stack_version_mapper.js b/ambari-web/app/mappers/stack_version_mapper.js
index 43eddc9..bd37288 100644
--- a/ambari-web/app/mappers/stack_version_mapper.js
+++ b/ambari-web/app/mappers/stack_version_mapper.js
@@ -58,8 +58,8 @@ App.stackVersionMapper = App.QuickDataMapper.create({
* <code>OUT_OF_SYNC<code>
*/
stack.host_states.NOT_INSTALLED = item.ClusterStackVersions.host_states.INSTALLING
- .concat(item.ClusterStackVersions.host_states.INSTALL_FAILED)
- .concat(item.ClusterStackVersions.host_states.OUT_OF_SYNC);
+ .concat(item.ClusterStackVersions.host_states.INSTALL_FAILED || [])
+ .concat(item.ClusterStackVersions.host_states.OUT_OF_SYNC || []);
/**
* this property contains array of hosts on which repoversion was installed
@@ -71,9 +71,9 @@ App.stackVersionMapper = App.QuickDataMapper.create({
* <code>UPGRADE_FAILED<code>
*/
stack.host_states.INSTALLED = item.ClusterStackVersions.host_states.INSTALLED
- .concat(item.ClusterStackVersions.host_states.UPGRADING)
- .concat(item.ClusterStackVersions.host_states.UPGRADED)
- .concat(item.ClusterStackVersions.host_states.UPGRADE_FAILED);
+ .concat(item.ClusterStackVersions.host_states.UPGRADING || [])
+ .concat(item.ClusterStackVersions.host_states.UPGRADED || [])
+ .concat(item.ClusterStackVersions.host_states.UPGRADE_FAILED || []);
if (item.repository_versions && item.repository_versions[0]) {
item.repository_versions[0].RepositoryVersions.stackVersionId = item.ClusterStackVersions.id;