Repository: ambari Updated Branches: refs/heads/trunk 5bf105f75 -> 8932e6472
AMBARI-6479. Add Services can cause service start failure due to not trimming extra spaces in log4j property configs. (yusaku) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8932e647 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8932e647 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8932e647 Branch: refs/heads/trunk Commit: 8932e6472edba92b9183c7b2d9dedb348aebf84a Parents: 5bf105f Author: Yusaku Sako <[email protected]> Authored: Mon Jul 14 11:14:54 2014 -0700 Committer: Yusaku Sako <[email protected]> Committed: Mon Jul 14 11:14:54 2014 -0700 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step8_controller.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8932e647/ambari-web/app/controllers/wizard/step8_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js index 0dcfffb..cf16a6e 100644 --- a/ambari-web/app/controllers/wizard/step8_controller.js +++ b/ambari-web/app/controllers/wizard/step8_controller.js @@ -884,6 +884,9 @@ App.WizardStep8Controller = Em.Controller.extend({ serviceNames.forEach(function (serviceName) { var serviceConfigs = configs.filterProperty('serviceName', serviceName); var tagName = 'version' + (new Date).getTime(); + serviceConfigs.forEach(function(config) { + config.value = App.config.trimProperty(config, false); + }); serviceConfigs.mapProperty('filename').uniq().forEach(function (siteName) { configsMap.push(configurationController.createSiteObj(siteName.replace(".xml", ""), tagName, serviceConfigs.filterProperty('filename', siteName))); });
