incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject git commit: AMBARI-3841 After deleting config group, hosts of it become unavailable. (atkach)
Date Thu, 21 Nov 2013 12:59:40 GMT
Updated Branches:
  refs/heads/trunk 01f8dcb5e -> efe97301a


AMBARI-3841 After deleting config group, hosts of it become unavailable. (atkach)


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

Branch: refs/heads/trunk
Commit: efe97301a7047d96ba547b55f90acd19cdb5e13d
Parents: 01f8dcb
Author: atkach <andrey91.07@gmail.com>
Authored: Thu Nov 21 14:59:30 2013 +0200
Committer: atkach <andrey91.07@gmail.com>
Committed: Thu Nov 21 14:59:30 2013 +0200

----------------------------------------------------------------------
 .../controllers/main/service/manage_config_groups_controller.js   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/efe97301/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
index acd7f96..7c7138c 100644
--- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
+++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
@@ -205,6 +205,9 @@ App.ManageConfigGroupsController = Em.Controller.extend({
         id: selectedConfigGroup.get('id')
       }
     });
+    //move hosts of group to default group (available hosts)
+    this.set('selectedHosts', selectedConfigGroup.get('hosts'));
+    this.deleteHosts();
     this.get('configGroups').removeObject(selectedConfigGroup);
     this.set('selectedConfigGroup', this.get('configGroups').findProperty('isDefault'));
   },


Mime
View raw message