Browse Source

AMBARI-9508 RU : UI dialog shows x hosts as INSTALLED, but API has correct statuses. (atkach)

Andrii Tkach 10 years ago
parent
commit
232d82ec4b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      ambari-web/app/mappers/stack_version_mapper.js

+ 1 - 3
ambari-web/app/mappers/stack_version_mapper.js

@@ -69,13 +69,11 @@ App.stackVersionMapper = App.QuickDataMapper.create({
          * <code>UPGRADING<code>
          * <code>UPGRADING<code>
          * <code>UPGRADED<code>
          * <code>UPGRADED<code>
          * <code>UPGRADE_FAILED<code>
          * <code>UPGRADE_FAILED<code>
-         * <code>CURRENT<code>
          */
          */
         stack.host_states.INSTALLED = item.ClusterStackVersions.host_states.INSTALLED
         stack.host_states.INSTALLED = item.ClusterStackVersions.host_states.INSTALLED
           .concat(item.ClusterStackVersions.host_states.UPGRADING)
           .concat(item.ClusterStackVersions.host_states.UPGRADING)
           .concat(item.ClusterStackVersions.host_states.UPGRADED)
           .concat(item.ClusterStackVersions.host_states.UPGRADED)
-          .concat(item.ClusterStackVersions.host_states.UPGRADE_FAILED)
-          .concat(item.ClusterStackVersions.host_states.CURRENT);
+          .concat(item.ClusterStackVersions.host_states.UPGRADE_FAILED);
 
 
         if (item.repository_versions && item.repository_versions[0]) {
         if (item.repository_versions && item.repository_versions[0]) {
           item.repository_versions[0].RepositoryVersions.stackVersionId = item.ClusterStackVersions.id;
           item.repository_versions[0].RepositoryVersions.stackVersionId = item.ClusterStackVersions.id;