浏览代码

AMBARI-4626 "Capacity Scheduler" section in Ambari does not allow ACL value of "user group" with spaces. (atkach)

atkach 11 年之前
父节点
当前提交
8b90b39bf2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-web/app/utils/config.js

+ 1 - 1
ambari-web/app/utils/config.js

@@ -975,7 +975,7 @@ App.config = Em.Object.create({
     var complexConfigName = this.get('complexConfigs').findProperty('filename', filename).name;
     var configsTextarea = configs.findProperty('name', complexConfigName);
     if (configsTextarea) {
-      var properties = configsTextarea.get('value').replace(/( |\n)+/g, '\n').split('\n');
+      var properties = configsTextarea.get('value').split('\n');
 
       properties.forEach(function (_property) {
         var name, value;