ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject git commit: AMBARI-8101. Datanode directories add \n between directory names when creating hdfs-site. (jaimin)
Date Sat, 01 Nov 2014 23:18:09 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 cdf266586 -> d7970d7ef


AMBARI-8101. Datanode directories add \n between directory names when creating hdfs-site.
(jaimin)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d7970d7e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d7970d7e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d7970d7e

Branch: refs/heads/branch-1.7.0
Commit: d7970d7efca37ee849645e8140d0a18054b6f06d
Parents: cdf2665
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Sat Nov 1 15:57:55 2014 -0700
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Sat Nov 1 15:57:55 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/utils/config.js       | 1 +
 ambari-web/test/utils/config_test.js | 7 +++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d7970d7e/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index 0c9fa72..61a4e13 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -1312,6 +1312,7 @@ App.config = Em.Object.create({
     switch (displayType) {
       case 'directories':
       case 'directory':
+      case 'datanodedirs':
         rez = value.trim().split(/\s+/g).join(',');
         break;
       case 'host':

http://git-wip-us.apache.org/repos/asf/ambari/blob/d7970d7e/ambari-web/test/utils/config_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/utils/config_test.js b/ambari-web/test/utils/config_test.js
index b04a404..4c68e8b 100644
--- a/ambari-web/test/utils/config_test.js
+++ b/ambari-web/test/utils/config_test.js
@@ -328,6 +328,13 @@ describe('App.config', function () {
       },
       {
         config: {
+          displayType: 'datanodedirs',
+          value: ' [DISK]/a [SSD]/b '
+        },
+        e: '[DISK]/a,[SSD]/b'
+      },
+      {
+        config: {
           displayType: 'host',
           value: ' localhost '
         },


Mime
View raw message