瀏覽代碼

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

Alex Antonenko 10 年之前
父節點
當前提交
301714a3d4
共有 1 個文件被更改,包括 4 次插入2 次删除
  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'));
       if (config && service.get('configTypes')) {
         Object.keys(service.get('configTypes')).forEach(function(type) {
-          configurations[type] = {
-            properties: {}
+          if(!configurations[type]){
+            configurations[type] = {
+              properties: {}
+            }
           }
         });
         config.get('configs').forEach(function(property){