You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2015/09/24 23:09:00 UTC
ambari git commit: AMBARI-13222. kdc_type lost when updating
kerberos-env via Kerberos service configuration page. (rlevas via yusaku)
Repository: ambari
Updated Branches:
refs/heads/branch-2.1 f2134f56d -> 2a4d08686
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/2a4d0868
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2a4d0868
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2a4d0868
Branch: refs/heads/branch-2.1
Commit: 2a4d08686717ea38533cd69bdef70ed93e209131
Parents: f2134f5
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Thu Sep 24 14:08:38 2015 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Thu Sep 24 14:08:38 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/2a4d0868/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 b0d5c35..a9b6aa2 100644
--- a/ambari-web/app/mixins/common/configs/configs_saver.js
+++ b/ambari-web/app/mixins/common/configs/configs_saver.js
@@ -442,6 +442,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";
@@ -451,7 +452,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)) {