aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Fix build break in code generator.
Date Thu, 26 Jun 2014 20:13:22 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master ea2e8c4ec -> 7d31f8090


Fix build break in code generator.

Reviewed at https://reviews.apache.org/r/23087/


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

Branch: refs/heads/master
Commit: 7d31f8090f3963a4108166122880f043413ecc1a
Parents: ea2e8c4
Author: Bill Farner <wfarner@apache.org>
Authored: Thu Jun 26 13:13:18 2014 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Thu Jun 26 13:13:18 2014 -0700

----------------------------------------------------------------------
 src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/7d31f809/src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py b/src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py
index d16cfdd..13e3461 100644
--- a/src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py
+++ b/src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py
@@ -53,7 +53,7 @@ class ParameterizedType(Type):
   def param_names(self):
     def name(t):
       if isinstance(t, StructType):
-        return t.codegen_name
+        return t.name if t.kind == 'enum' else t.codegen_name
       elif isinstance(t, PrimitiveType):
         return t.boxed_name
       else:


Mime
View raw message