Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 eb8526d5f -> bbd9948fe


AMBARI-20268. WFM generates duplicate kill nodes in XML if decision paths have 
multiple transition to kill node.(Padma Priya N via gauravn7)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bbd9948f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bbd9948f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bbd9948f

Branch: refs/heads/branch-2.5
Commit: bbd9948fe8234039b5c1d49f018cec13388405b2
Parents: eb8526d
Author: Gaurav Nagar <[email protected]>
Authored: Thu Mar 2 19:23:48 2017 +0530
Committer: Gaurav Nagar <[email protected]>
Committed: Thu Mar 2 19:23:48 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/domain/workflow-xml-generator.js   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bbd9948f/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-xml-generator.js
----------------------------------------------------------------------
diff --git 
a/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-xml-generator.js
 
b/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-xml-generator.js
index eb8534b..7223581 100644
--- 
a/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-xml-generator.js
+++ 
b/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-xml-generator.js
@@ -98,10 +98,10 @@ var WorkflowGenerator= Ember.Object.extend({
     if (!visitedNodes){
       visitedNodes=[];
     }
-    if (visitedNodes.contains(node.get("id"))){
+    if (visitedNodes.contains(node.get("name"))){
       return;
     }
-    visitedNodes.push(node.get("id"));
+    visitedNodes.push(node.get("name"));
     var self=this;
     var workflowApp=workflowObj["workflow-app"];
     if (node.isPlaceholder()){

Reply via email to