You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/06/15 14:58:25 UTC

[ambari] branch trunk updated: AMBARI-24110 Add Ranger Kms Server doesn't not trigger Install request while enabling HA

This is an automated email from the ASF dual-hosted git repository.

atkach 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 ae72be1  AMBARI-24110 Add Ranger Kms Server doesn't not trigger Install request while enabling HA
ae72be1 is described below

commit ae72be150e1d5e270405109e53b7c57d1e3c705c
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Fri Jun 15 14:29:57 2018 +0300

    AMBARI-24110 Add Ranger Kms Server doesn't not trigger Install request while enabling HA
---
 ambari-web/app/controllers/main/host/details.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js
index 08009c1..d2c9aca 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -777,7 +777,7 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow
     }
     this.loadComponentRelatedConfigs(componentsMapItem.configTagsCallbackName, componentsMapItem.configsCallbackName);
     return this.showAddComponentPopup(component, hostName, () => {
-      this.installAndReconfigureComponent(hostName, component, componentsMapItem);
+      this.installAndReconfigureComponent(this.get('content.hostName'), component, componentsMapItem);
     }, fromServiceSummary);
   },
 
@@ -829,18 +829,18 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow
         }.property('fromServiceSummary'),
         anyHostsWithoutComponent: Em.computed.or('!fromServiceSummary', 'hostsWithoutComponent.length'),
         selectedHostObserver: function () {
-          hostName = this.get('selectedHost');
+          const selectedHostName = this.get('selectedHost');
           if (!self.get('content')) {
             self.set('content', {});
           }
           self.setProperties({
-            'content.hostName': hostName
+            'content.hostName': selectedHostName
           });
           if (componentsMapItem) {
             const configs = self.get('configs');
             const params = configs && configs.params || {};
             if (componentsMapItem.hostPropertyName) {
-              self.set(componentsMapItem.hostPropertyName, hostName);
+              self.set(componentsMapItem.hostPropertyName, selectedHostName);
             }
             if (componentsMapItem.addPropertyName) {
               self.set(componentsMapItem.addPropertyName, true);

-- 
To stop receiving notification emails like this one, please contact
atkach@apache.org.