Repository: ambari
Updated Branches:
  refs/heads/trunk fc41f6673 -> 76b211fa7


AMBARI-11949. Kerberos Wizard: Moving between steps 2 and 3 back/forward cause 
API error (rlevas)


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

Branch: refs/heads/trunk
Commit: 76b211fa72fe13b60a6881f90ddc5209a1a80f6f
Parents: fc41f66
Author: Robert Levas <[email protected]>
Authored: Wed Jun 17 13:59:57 2015 -0400
Committer: Robert Levas <[email protected]>
Committed: Wed Jun 17 14:00:05 2015 -0400

----------------------------------------------------------------------
 .../app/controllers/main/admin/kerberos/step2_controller.js     | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/76b211fa/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js 
b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
index a34dc30..77ab68f 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
@@ -132,10 +132,15 @@ App.KerberosWizardStep2Controller = 
App.WizardStep7Controller.extend({
     this.set('isSubmitDisabled', true);
     var self = this;
     this.deleteKerberosService().always(function (data) {
+      self.removeLocalKerberosComponentData();
       self.createKerberosResources();
     });
   },
 
+  removeLocalKerberosComponentData: function () {
+    App.serviceComponents.removeObject('KERBEROS_CLIENT');
+  },
+
   createKerberosResources: function () {
     var self = this;
     this.createKerberosService().done(function () {

Reply via email to