ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject ambari git commit: AMBARI-13222. kdc_type lost when updating kerberos-env via Kerberos service configuration page. (rlevas via yusaku)
Date Thu, 24 Sep 2015 21:09:54 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1.2 fd2379755 -> c6a8ba892


AMBARI-13222. kdc_type lost when updating kerberos-env via Kerberos service configuration
page. (rlevas via yusaku)


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

Branch: refs/heads/branch-2.1.2
Commit: c6a8ba892d32b5abffb6572f95bf13b990ada172
Parents: fd23797
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Thu Sep 24 14:09:39 2015 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Thu Sep 24 14:09:39 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/mixins/common/configs/configs_saver.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c6a8ba89/ambari-web/app/mixins/common/configs/configs_saver.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/configs_saver.js b/ambari-web/app/mixins/common/configs/configs_saver.js
index b7ec88c..c04fff8 100644
--- a/ambari-web/app/mixins/common/configs/configs_saver.js
+++ b/ambari-web/app/mixins/common/configs/configs_saver.js
@@ -547,6 +547,7 @@ App.ConfigsSaverMixin = Em.Mixin.create({
   formatValueBeforeSave: function(property) {
     var name = property.get('name');
     var value = property.get('value');
+    var kdcTypesMap = App.router.get('mainAdminKerberosController.kdcTypesValues');
     //TODO check for core-site
     if (this.get('heapsizeRegExp').test(name) && !this.get('heapsizeException').contains(name)
&& !(value).endsWith("m")) {
       return value += "m";
@@ -556,7 +557,9 @@ App.ConfigsSaverMixin = Em.Mixin.create({
     }
     switch (name) {
       case 'kdc_type':
-        return App.router.get('mainAdminKerberosController.kdcTypesValues')[property.get('value')];
+        return Em.keys(kdcTypesMap).filter(function(key) {
+            return kdcTypesMap[key] === property.get('value');
+        })[0];
       case 'storm.zookeeper.servers':
       case 'nimbus.seeds':
         if (Em.isArray(value)) {


Mime
View raw message