Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.1 7ba362a48 -> 99c03578d


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/99c03578
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/99c03578
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/99c03578

Branch: refs/heads/branch-1.6.1
Commit: 99c03578d993baf078173eb63bbaaf201b8594a1
Parents: 7ba362a
Author: Yusaku Sako <[email protected]>
Authored: Mon Jul 14 11:13:10 2014 -0700
Committer: Yusaku Sako <[email protected]>
Committed: Mon Jul 14 11:13:33 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/99c03578/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 9985c5d..04c55a4 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -835,6 +835,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)));
       });

Reply via email to