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/06/24 14:55:46 UTC

[2/2] ambari git commit: AMBARI-12118. Delete host doesn't work (alexantonenko)

AMBARI-12118. Delete host doesn't work (alexantonenko)


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

Branch: refs/heads/branch-2.1
Commit: 9d5d3a18799379efd7ae7c9ffca885ccd2ee045f
Parents: 61ad2c5
Author: Alex Antonenko <hi...@gmail.com>
Authored: Wed Jun 24 15:48:15 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Jun 24 15:55:42 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/9d5d3a18/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 9c47221..e716753 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -1857,8 +1857,8 @@ App.MainHostDetailsController = Em.Controller.extend({
       runningComponents: [],
       nonDeletableComponents: [],
       unknownComponents: []
-    };
-
+    }; 
+    var self = this;
     if (componentsOnHost && componentsOnHost.get('length') > 0) {
       componentsOnHost.forEach(function (cInstance) {
         if (cInstance.get('componentName') === 'ZOOKEEPER_SERVER') {
@@ -1886,7 +1886,7 @@ App.MainHostDetailsController = Em.Controller.extend({
             ? App.HostComponent.find().filterProperty('componentName', componentName).length
             : App.SlaveComponent.find().findProperty('componentName', componentName).get('totalCount');
           var  isDeleteComponentDisabled = (installedCount <= stackComponentCount)
-            || ![App.HostComponentStatus.stopped, App.HostComponentStatus.unknown, App.HostComponentStatus.install_failed, App.HostComponentStatus.upgrade_failed, App.HostComponentStatus.init].contains(this.get('workStatus'));
+            || ![App.HostComponentStatus.stopped, App.HostComponentStatus.unknown, App.HostComponentStatus.install_failed, App.HostComponentStatus.upgrade_failed, App.HostComponentStatus.init].contains(self.get('workStatus'));
           if (isDeleteComponentDisabled) {
             if (!container.masterComponents.contains(displayName))
               container.masterComponents.push(displayName);