You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/03/20 00:41:26 UTC

[4/6] ambari git commit: AMBARI-10131. Host details: No dependency check before adding/installing components (clicking does nothing) (alexantonenko)

AMBARI-10131. Host details: No dependency check before adding/installing components (clicking does nothing) (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 594fab6ce3f452e0886568ff7e29462bf93e9b83
Parents: 0fe14ef
Author: Alex Antonenko <hi...@gmail.com>
Authored: Thu Mar 19 22:42:40 2015 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Mar 20 01:40:59 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/details.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/594fab6c/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 728221b..47f6cce 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -434,6 +434,8 @@ App.MainHostDetailsController = Em.Controller.extend({
    * @param event
    */
   addComponentWithCheck: function(event) {
+    var componentName = event.context ? event.context.get('componentName') : "";
+    event.hiveMetastoreHost = (componentName == "HIVE_METASTORE" && !!this.get('content.hostName')) ? this.get('content.hostName') : null;
     App.get('router.mainAdminKerberosController').getKDCSessionState(this.addComponent.bind(this, event));
   },
   /**
@@ -445,7 +447,7 @@ App.MainHostDetailsController = Em.Controller.extend({
     var
       returnFunc,
       self = this,
-      hiveHost = event.hiveMetastoreHost ? event.hiveMetastoreHost : this.get('content.hostName');
+      hiveHost = event.hiveMetastoreHost ? event.hiveMetastoreHost : "";
       component = event.context,
       componentName = component.get('componentName'),
       missedComponents = !!hiveHost ? [] : componentsUtils.checkComponentDependencies(componentName, {