This is an automated email from the ASF dual-hosted git repository.
ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8c03401 AMBARI-23624 Additional realm config change not working.
(ababiichuk)
8c03401 is described below
commit 8c034016d87135602dfc29e8139334cc4b20ee92
Author: ababiichuk <[email protected]>
AuthorDate: Thu Apr 19 17:02:00 2018 +0300
AMBARI-23624 Additional realm config change not working. (ababiichuk)
---
ambari-web/app/controllers/main/admin/kerberos.js | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/controllers/main/admin/kerberos.js
b/ambari-web/app/controllers/main/admin/kerberos.js
index 1b94758..c559398 100644
--- a/ambari-web/app/controllers/main/admin/kerberos.js
+++ b/ambari-web/app/controllers/main/admin/kerberos.js
@@ -562,7 +562,8 @@ App.MainAdminKerberosController =
App.KerberosWizardStep4Controller.extend({
artifact_data: kerberosDescriptor
}
},
- success: '_updateConfigs'
+ success: '_updateConfigs',
+ error: 'createKerberosDescriptor'
});
};
this.updateKerberosDescriptor(kerberosDescriptor, configs);
@@ -575,6 +576,21 @@ App.MainAdminKerberosController =
App.KerberosWizardStep4Controller.extend({
}
},
+ createKerberosDescriptor: function (requestData, ajaxOptions, error, opt,
params) {
+ if (requestData && requestData.status === 404) {
+ const {artifactName, data} = params;
+ App.ajax.send({
+ name: 'admin.kerberos.cluster.artifact.create',
+ sender: self,
+ data: {
+ artifactName,
+ data
+ },
+ success: '_updateConfigs'
+ });
+ }
+ },
+
/**
* List of the warnings regarding specific services before
enabling/disabling Kerberos.
*
--
To stop receiving notification emails like this one, please contact
[email protected].