Pārlūkot izejas kodu

[oozie] Move capture-output to bottom in Shell action

Romain Rigaux 13 gadi atpakaļ
vecāks
revīzija
e5ad97a

+ 2 - 2
apps/oozie/src/oozie/templates/editor/gen/workflow-shell.xml.mako

@@ -30,11 +30,11 @@
               <${ param['type'] }>${ param['value'] }</${ param['type'] }>
             % endfor
 
+            ${ common.distributed_cache(node.get_files(), node.get_archives()) }
+
             % if node.capture_output:
               <capture-output/>
             % endif
-
-            ${ common.distributed_cache(node.get_files(), node.get_archives()) }
         </shell>
         <ok to="${ node.get_child('ok') }"/>
         <error to="${ node.get_child('error') }"/>

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

@@ -549,8 +549,8 @@ class TestEditor(OozieMockBase):
             <name-node>${nameNode}</name-node>
             <exec>hello.py</exec>
               <argument>World!</argument>
-              <capture-output/>
             <file>hello.py#hello.py</file>
+              <capture-output/>
         </shell>""" in xml, xml)
 
     action1.capture_output = False