ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rz...@apache.org
Subject ambari git commit: AMBARI-12384 HDFS client configs not set during Ranger KMS install (rzang)
Date Mon, 13 Jul 2015 18:27:45 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 12548a135 -> a90d38114


AMBARI-12384 HDFS client configs not set during Ranger KMS install (rzang)


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

Branch: refs/heads/branch-2.1
Commit: a90d38114743f0bcab0238bbb9f5a0385b29e16d
Parents: 12548a1
Author: Richard Zang <rzang@apache.org>
Authored: Mon Jul 13 11:17:56 2015 -0700
Committer: Richard Zang <rzang@apache.org>
Committed: Mon Jul 13 11:20:50 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/mixins/common/configs/enhanced_configs.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a90d3811/ambari-web/app/mixins/common/configs/enhanced_configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/enhanced_configs.js b/ambari-web/app/mixins/common/configs/enhanced_configs.js
index 94b595b..6f1d094 100644
--- a/ambari-web/app/mixins/common/configs/enhanced_configs.js
+++ b/ambari-web/app/mixins/common/configs/enhanced_configs.js
@@ -185,9 +185,13 @@ App.EnhancedConfigsMixin = Em.Mixin.create({
     });
     var cleanDependencies = this.get('_dependentConfigValues').reject(function(item) {
       if (installedServices.contains(Em.get(item, 'serviceName'))) {
-        var parentConfigs = Em.getWithDefault(item, 'parentConfigs', []);
-        if (!parentConfigs.length) {
+        var parentConfigs = App.StackConfigProperty.find().findProperty("name", item.propertyName).get('propertyDependsOn')
+        if (!parentConfigs || !parentConfigs.length) {
           return true;
+        } else {
+          parentConfigs = parentConfigs.map(function (e) {
+            return e.name;
+          });
         }
         // check that all parent properties from installed service
         return !parentConfigs.reject(function(parentConfigName) {


Mime
View raw message