Updated Branches:
  refs/heads/trunk 8bd4a9793 -> 98081d63a

AMBARI-3954. hbase.zookeeper.quorum changing inconsistently on hosts after 
adding ZookeeperServer. (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 98081d63ae847922fadb471f0648397893ba6dc5
Parents: 8bd4a97
Author: Oleg Nechiporenko <[email protected]>
Authored: Mon Dec 9 15:27:56 2013 +0200
Committer: Oleg Nechiporenko <[email protected]>
Committed: Mon Dec 9 15:27:56 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/98081d63/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 8162166..2ef4902 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -578,6 +578,7 @@ App.MainHostDetailsController = Em.Controller.extend({
   getZkServerHosts: function() {
     var zks = App.HostComponent.find().filterProperty('componentName', 
'ZOOKEEPER_SERVER').mapProperty('host.hostName');
     if (this.get('fromDeleteHost')) {
+      this.set('fromDeleteHost', false);
       return zks.without(this.get('content.hostName'));
     }
     return zks;
@@ -945,8 +946,8 @@ App.MainHostDetailsController = Em.Controller.extend({
         templateName: require('templates/main/host/details/doDeleteHostPopup')
       }),
       onPrimary: function() {
-        self.set('fromDeleteHost', true);
         if (!this.get('enablePrimary')) return;
+        self.set('fromDeleteHost', true);
         var allComponents = self.get('content.hostComponents');
         var deleteError = null;
         allComponents.forEach(function(component){
@@ -976,7 +977,6 @@ App.MainHostDetailsController = Em.Controller.extend({
         var dialogSelf = this;
         App.router.get('updateController').updateHost(function(){
           self.loadConfigs();
-          self.set('fromDeleteHost', false);
           dialogSelf.hide();
           App.router.transitionTo('hosts.index');
         });
@@ -987,7 +987,6 @@ App.MainHostDetailsController = Em.Controller.extend({
         console.log(errorThrown);
         xhr.responseText = "{\"message\": \"" + xhr.statusText + "\"}";
         self.loadConfigs();
-        this.set('fromDeleteHost', false);
         this.hide();
         App.ajax.defaultErrorHandler(xhr, opt.url, 'DELETE', xhr.status);
       }

Reply via email to