ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [09/16] ambari git commit: AMBARI-20266. Duplicate node error is shown if kill node transition exists from decision node in WFM.(Padma Priya N via gauravn7)
Date Thu, 02 Mar 2017 18:41:54 GMT
AMBARI-20266. Duplicate node error is shown if kill node transition exists from decision node
in WFM.(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/453a594f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/453a594f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/453a594f

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 453a594f0140e62dee338ad87bce3e81ba25c8bf
Parents: ac323d0
Author: Gaurav Nagar <grvngr@gmail.com>
Authored: Thu Mar 2 19:25:53 2017 +0530
Committer: Gaurav Nagar <grvngr@gmail.com>
Committed: Thu Mar 2 19:25:53 2017 +0530

----------------------------------------------------------------------
 .../main/resources/ui/app/validators/duplicate-data-node-name.js   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/453a594f/contrib/views/wfmanager/src/main/resources/ui/app/validators/duplicate-data-node-name.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/validators/duplicate-data-node-name.js
b/contrib/views/wfmanager/src/main/resources/ui/app/validators/duplicate-data-node-name.js
index 7336d6e..86da02b 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/validators/duplicate-data-node-name.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/validators/duplicate-data-node-name.js
@@ -29,7 +29,7 @@ const DuplicateDataNodeName = BaseValidator.extend({
             return "Node name should not be blank";
           }
           Ember.set(item.data.node, "errors", false);
-          if(nodeNames.get(item.data.node.name)){
+          if(nodeNames.get(item.data.node.name) && item.data.node.type !== 'kill'){
             Ember.set(item.data.node, "errors", true);
             return `${item.data.node.name} : Node name should be unique`;
           }else{


Mime
View raw message