Эх сурвалжийг харах

HUE-8159 [oozie] Unable to create Workflow/Schedule using Java document Action

Java-document action has 'arguments' instead of parameters
Java --https://github.com/cloudera/hue/blob/master/apps/oozie/src/oozie/models2.py#L2314
Shell --https://github.com/cloudera/hue/blob/master/apps/oozie/src/oozie/models2.py#L2706
Roohi 7 жил өмнө
parent
commit
f9af8ec

+ 1 - 1
apps/oozie/src/oozie/models2.py

@@ -396,7 +396,7 @@ class Workflow(Job):
 
     for node in self.nodes:
       if 'document' in node.data['type']:
-        for param in node.data['properties']['parameters']:
+        for param in node.data['properties']['arguments'] if node.data['type'] == 'java-document' else node.data['properties']['parameters']:
           if param['value'] and '=' in param['value']:
             name, val = param['value'].split('=', 1)
             parameters[name] = val