Browse Source

AMBARI-6375. Maintenance mode: canNOT be turned on via Bulk Operations on selected hosts (other bulk operations are broken as well) (alexantonenko)

Alex Antonenko 11 years ago
parent
commit
5c350746be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-web/app/views/main/host.js

+ 1 - 1
ambari-web/app/views/main/host.js

@@ -387,7 +387,7 @@ App.MainHostView = App.TableView.extend(App.TableServerProvider, {
     var queryParams = [];
     var queryParams = [];
     switch(selection) {
     switch(selection) {
       case 's':
       case 's':
-        hostsNames = App.db.data.app.tables.filterConditions[this.get('controller.name')].findProperty('iColumn', 10).value;
+        hostsNames = this.get('selectedHosts');
         if(hostsNames.length > 0){
         if(hostsNames.length > 0){
           queryParams.push({
           queryParams.push({
             key: 'Hosts/host_name',
             key: 'Hosts/host_name',