Browse Source

AMBARI-6504. Incorrect errors count for YARN on step 7 of Install Wizard (HDP 2.0). (Max Shepel via akovalenko)

Aleksandr Kovalenko 11 years ago
parent
commit
6cf8fb17d6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ambari-web/app/models/service_config.js

+ 4 - 1
ambari-web/app/models/service_config.js

@@ -36,7 +36,10 @@ App.ServiceConfig = Ember.Object.extend({
         }
       })
     });
-    var masterErrors = this.get('configs').filterProperty('isValid', false).filterProperty('isVisible', true).get('length');
+    var categoryNames = this.get('configCategories').mapProperty('name');
+    var masterErrors = this.get('configs').filter(function (item) {
+      return categoryNames.contains(item.get('category'));
+    }).filterProperty('isValid', false).filterProperty('isVisible', true).get('length');
     var slaveErrors = 0;
     this.get('configCategories').forEach(function (_category) {
       slaveErrors += _category.get('slaveErrorCount');