Browse Source

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

atkach 11 years ago
parent
commit
efe97301a7

+ 3 - 0
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'));
   },