You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vg...@apache.org on 2011/12/20 20:04:44 UTC

svn commit: r1221439 - in /incubator/ambari/trunk: CHANGES.txt controller/src/main/java/org/apache/ambari/controller/Clusters.java

Author: vgogate
Date: Tue Dec 20 19:04:44 2011
New Revision: 1221439

URL: http://svn.apache.org/viewvc?rev=1221439&view=rev
Log:
AMBARI-168. trim the white spaces from host names returned through getHostnamesFromRageExpressions

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/Clusters.java

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1221439&r1=1221438&r2=1221439&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Tue Dec 20 19:04:44 2011
@@ -2,6 +2,8 @@ Ambari Change log
 
 Release 0.1.0 - unreleased
 
+  AMBARI-168. trim the white spaces from host names returned through getHostnamesFromRageExpressions (vgogate)
+
   AMBARI-163. Addresses failure handling in FSM. ((thejas via ddas)
 
   AMBARI-165. Fix the component definition for HDFS. (omalley)

Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/Clusters.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/Clusters.java?rev=1221439&r1=1221438&r2=1221439&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/Clusters.java (original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/Clusters.java Tue Dec 20 19:04:44 2011
@@ -833,7 +833,7 @@ public class Clusters {
       List<String> list = new ArrayList<String>();
       StringTokenizer st = new StringTokenizer(nodeRangeExpression, ",");
       while (st.hasMoreTokens()) {
-        list.add(st.nextToken());
+        list.add(st.nextToken().trim());
       }
       return list;
   }