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 năm trước cách đây
mục cha
commit
6cf8fb17d6
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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');