You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by gn...@apache.org on 2017/01/17 10:17:41 UTC
ambari git commit: AMBARI-19556. Ambari Yarn Queue Manager allows two
same queue name. (Akhil PB via gauravn7)
Repository: ambari
Updated Branches:
refs/heads/branch-2.5 8c407dc37 -> 42194484e
AMBARI-19556. Ambari Yarn Queue Manager allows two same queue name. (Akhil PB via gauravn7)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/42194484
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/42194484
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/42194484
Branch: refs/heads/branch-2.5
Commit: 42194484e31b82f21f38241867abeaa73ad7c2b6
Parents: 8c407dc
Author: Gaurav Nagar <gr...@gmail.com>
Authored: Tue Jan 17 15:47:12 2017 +0530
Committer: Gaurav Nagar <gr...@gmail.com>
Committed: Tue Jan 17 15:47:12 2017 +0530
----------------------------------------------------------------------
.../src/main/resources/ui/app/components/pathInput.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/42194484/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/pathInput.js
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/pathInput.js b/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/pathInput.js
index e71d226..d3471bf 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/pathInput.js
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/components/pathInput.js
@@ -27,7 +27,8 @@ App.PathInputComponent = Em.Component.extend({
basedir = path.substr(0,path.lastIndexOf('.')) || currentBasedir,
queuePath = [basedir,path.substr(path.lastIndexOf('.')+1)].join('.'),
queueName = path.substr(path.lastIndexOf('.')+1),
- alreadyExists = this.get('queues.firstObject.store').hasRecordForId('queue',queuePath.toLowerCase());
+ deletedQueues = this.get('queues.firstObject.store').get('deletedQueues'),
+ alreadyExists = (this.get('queues').findBy('name',queueName)||deletedQueues.findBy('name',queueName))?true:false;
if (!path || !queueName) {
return this.setProperties({'isError':true,'errorMessage':'Enter queue name.'});