Browse Source

AMBARI-8110 Properties which added from Add Service Wizard NOT exist after deployed. (atkach)

atkach 10 years ago
parent
commit
9b82517977
1 changed files with 6 additions and 3 deletions
  1. 6 3
      ambari-web/app/controllers/wizard.js

+ 6 - 3
ambari-web/app/controllers/wizard.js

@@ -859,9 +859,12 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, {
       // check for configs that need to update for installed services
       // check for configs that need to update for installed services
       if (stepController.get('installedServiceNames') && stepController.get('installedServiceNames').contains(_content.get('serviceName'))) {
       if (stepController.get('installedServiceNames') && stepController.get('installedServiceNames').contains(_content.get('serviceName'))) {
         // get only modified configs
         // get only modified configs
-        var configs = _content.get('configs').filterProperty('isNotDefaultValue').filter(function (config) {
-          var notAllowed = ['masterHost', 'masterHosts', 'slaveHosts', 'slaveHost'];
-          return !notAllowed.contains(config.get('displayType')) && !!config.filename;
+        var configs = _content.get('configs').filter(function (config) {
+          if (config.get('isNotDefaultValue') || (config.get('defaultValue') === null)) {
+            var notAllowed = ['masterHost', 'masterHosts', 'slaveHosts', 'slaveHost'];
+            return !notAllowed.contains(config.get('displayType')) && !!config.filename;
+          }
+          return false;
         });
         });
         // if modified configs detected push all service's configs for update
         // if modified configs detected push all service's configs for update
         if (configs.length) {
         if (configs.length) {