Repository: ambari Updated Branches: refs/heads/branch-2.2 47717d2aa -> 5b5ca9353
AMBARI-14942 Reinstallation of a failed component should ask for Kerberos password. (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5b5ca935 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5b5ca935 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5b5ca935 Branch: refs/heads/branch-2.2 Commit: 5b5ca93538cdf09006ff66007cd91c472d4e2890 Parents: 47717d2 Author: ababiichuk <ababiic...@hortonworks.com> Authored: Fri Feb 5 17:00:51 2016 +0200 Committer: ababiichuk <ababiic...@hortonworks.com> Committed: Fri Feb 5 17:05:31 2016 +0200 ---------------------------------------------------------------------- ambari-web/app/controllers/main/host/details.js | 39 +++++++++++--------- 1 file changed, 22 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5b5ca935/ambari-web/app/controllers/main/host/details.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js index 9b38db9..0be8868 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -1419,23 +1419,28 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow templateName: require('templates/main/host/details/installComponentPopup') }), onPrimary: function () { - this.hide(); - - App.ajax.send({ - name: 'common.host.host_component.update', - sender: self, - data: { - hostName: self.get('content.hostName'), - serviceName: component.get('service.serviceName'), - componentName: componentName, - component: component, - context: Em.I18n.t('requestInfo.installHostComponent') + " " + displayName, - HostRoles: { - state: 'INSTALLED' - } - }, - success: 'installComponentSuccessCallback', - error: 'ajaxErrorCallback' + var _this = this; + App.get('router.mainAdminKerberosController').getSecurityType(function () { + App.get('router.mainAdminKerberosController').getKDCSessionState(function () { + _this.hide(); + + App.ajax.send({ + name: 'common.host.host_component.update', + sender: self, + data: { + hostName: self.get('content.hostName'), + serviceName: component.get('service.serviceName'), + componentName: componentName, + component: component, + context: Em.I18n.t('requestInfo.installHostComponent') + " " + displayName, + HostRoles: { + state: 'INSTALLED' + } + }, + success: 'installComponentSuccessCallback', + error: 'ajaxErrorCallback' + }); + }) }); } });