Browse Source

[oozie] Import jobsub action fix

When importing a jobsub action into oozie workflow editor,
the name should not be changed to the ID of the node.
It should retain what ever name it has.
Abraham Elmahrek 13 years ago
parent
commit
274e699bd2

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

@@ -1,7 +1,7 @@
 import re
 
 from jobsub.models import OozieDesign, OozieMapreduceAction, OozieStreamingAction,\
-  OozieJavaAction
+                          OozieJavaAction
 
 from oozie.models import Mapreduce, Java, Streaming
 

+ 0 - 1
apps/oozie/src/oozie/templates/editor/edit_workflow.mako

@@ -674,7 +674,6 @@ $('#workflow').on('click', '.import-jobsub-node-link', function(e) {
         var node = data.data.node;
         var NodeModel = nodeModelChooser(node.node_type);
         node.id = IdGeneratorTable[node.node_type].nextId();
-        node.name = node.id;
         node.child_links = [];
         var model = new NodeModel(node);
         var new_node = new Node(workflow, model, workflow.registry);