Browse Source

[oozie] Fix Sqoop command XML field

Romain Rigaux 13 years ago
parent
commit
02d706efef

+ 3 - 8
apps/oozie/src/oozie/templates/editor/edit_workflow.mako

@@ -284,19 +284,14 @@ modal-window .modal-content {
         }
         }
       });
       });
     });
     });
-    /*
-    var viewModel = function(){};
-    window.viewModel = new viewModel();
-    ko.applyBindings(window.viewModel);
 
 
-     */
      ko.applyBindings(window.viewModelparameters, $("#parameters")[0]);
      ko.applyBindings(window.viewModelparameters, $("#parameters")[0]);
      ko.applyBindings(window.viewModeljob_properties, $("#job_properties")[0]);
      ko.applyBindings(window.viewModeljob_properties, $("#job_properties")[0]);
 
 
     $('#jobForm').submit(function() {
     $('#jobForm').submit(function() {
-    window.viewModelparameters.pre_submit();
-    window.viewModeljob_properties.pre_submit();
-  })
+      window.viewModelparameters.pre_submit();
+      window.viewModeljob_properties.pre_submit();
+    })
 
 
     $("a[data-row-selector='true']").jHueRowSelector();
     $("a[data-row-selector='true']").jHueRowSelector();
 
 

+ 1 - 1
apps/oozie/src/oozie/templates/editor/gen/workflow-sqoop.xml.mako

@@ -25,7 +25,7 @@
             ${ common.configuration(node.get_properties()) }
             ${ common.configuration(node.get_properties()) }
 
 
             % if node.script_path:
             % if node.script_path:
-            <script>${ node.script_path }</script>
+            <command>${ node.script_path }</command>
             % endif
             % endif
 
 
             % for param in node.get_params():
             % for param in node.get_params():