incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject git commit: AMBARI-3773. Ambari server runs into error due to the new stack 2.0._ (dlysnichenko)
Date Fri, 15 Nov 2013 15:45:40 GMT
Updated Branches:
  refs/heads/trunk b8f96a2d6 -> b5a3f48bc


AMBARI-3773. Ambari server runs into error due to the new stack 2.0._ (dlysnichenko)


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

Branch: refs/heads/trunk
Commit: b5a3f48bcbe22eeae0f892fa7a820ff74def9886
Parents: b8f96a2
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Fri Nov 15 17:43:23 2013 +0200
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Fri Nov 15 17:45:07 2013 +0200

----------------------------------------------------------------------
 .../org/apache/ambari/server/api/services/AmbariMetaInfo.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/b5a3f48b/ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
b/ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
index f14afeb..1d2f544 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
@@ -83,7 +83,8 @@ public class AmbariMetaInfo {
   public static final FilenameFilter FILENAME_FILTER = new FilenameFilter() {
     @Override
     public boolean accept(File dir, String s) {
-      if (s.equals(".svn") || s.equals(".git"))
+      if (s.equals(".svn") || s.equals(".git")
+              || s.endsWith("_")) // Temporary hack: ignore such names
         return false;
       return true;
     }


Mime
View raw message