Pārlūkot izejas kodu

AMBARI-7157. UI is not sending all the configs on validation (alexantonenko)

Alex Antonenko 10 gadi atpakaļ
vecāks
revīzija
301714a3d4
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      ambari-web/app/utils/blueprint.js

+ 4 - 2
ambari-web/app/utils/blueprint.js

@@ -218,8 +218,10 @@ module.exports = {
       var config = stepConfigs.findProperty('serviceName', service.get('serviceName'));
       var config = stepConfigs.findProperty('serviceName', service.get('serviceName'));
       if (config && service.get('configTypes')) {
       if (config && service.get('configTypes')) {
         Object.keys(service.get('configTypes')).forEach(function(type) {
         Object.keys(service.get('configTypes')).forEach(function(type) {
-          configurations[type] = {
-            properties: {}
+          if(!configurations[type]){
+            configurations[type] = {
+              properties: {}
+            }
           }
           }
         });
         });
         config.get('configs').forEach(function(property){
         config.get('configs').forEach(function(property){