Skip to content

Commit

Permalink
AMBARI-4904. Cannot Decommission/Recommission. (yusaku)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusaku Sako committed Mar 1, 2014
1 parent 0134fb6 commit 0f23e3d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
15 changes: 6 additions & 9 deletions ambari-web/app/controllers/main/host/details.js
Expand Up @@ -782,13 +782,12 @@ App.MainHostDetailsController = Em.Controller.extend({
"RequestInfo" : {
"context" : Em.I18n.t('hosts.host.regionserver.decommission.batch1'),
"command" : "DECOMMISSION",
"service_name" : serviceName,
"component_name" : componentName,
"parameters" : {
"slave_type": slaveType,
"excluded_hosts": hostNames
}
}
},
"Requests/resource_filters": [{"service_name" : serviceName, "component_name" : componentName}]
}
},
{
Expand Down Expand Up @@ -877,13 +876,12 @@ App.MainHostDetailsController = Em.Controller.extend({
"RequestInfo" : {
"context" : context_1,
"command" : "DECOMMISSION",
"service_name" : serviceName,
"component_name" : componentName,
"parameters" : {
"slave_type": slaveType,
"included_hosts": hostNames
}
}
},
"Requests/resource_filters": [{"service_name" : serviceName, "component_name" : componentName}]
}
},
{
Expand Down Expand Up @@ -928,13 +926,12 @@ App.MainHostDetailsController = Em.Controller.extend({
"RequestInfo" : {
"context" : context_1,
"command" : "DECOMMISSION",
"service_name" : serviceName,
"component_name" : componentName,
"parameters" : {
"slave_type": slaveType,
"included_hosts": hostNames
}
}
},
"Requests/resource_filters": [{"service_name" : serviceName, "component_name" : componentName}]
}
},
{
Expand Down
15 changes: 6 additions & 9 deletions ambari-web/app/utils/ajax.js
Expand Up @@ -364,13 +364,12 @@ var urls = {
RequestInfo: {
'context': data.context,
'command': data.command,
'service_name': data.serviceName,
'component_name': data.componentName,
'parameters': {
'slave_type': data.slaveType,
'excluded_hosts': data.hostName
}
}
},
"Requests/resource_filters": [{"service_name" : data.serviceName, "component_name" : data.componentName}]
})
}
}
Expand Down Expand Up @@ -406,13 +405,12 @@ var urls = {
RequestInfo: {
context: data.context,
command: data.command,
service_name: data.serviceName,
component_name: data.componentName,
parameters: {
slave_type: data.slaveType,
included_hosts: data.hostName
}
}
},
"Requests/resource_filters": [{"service_name" : data.serviceName, "component_name" : data.componentName}]
})
}
}
Expand Down Expand Up @@ -1612,10 +1610,9 @@ var urls = {
'RequestInfo': {
'context': data.context,
'command': 'DECOMMISSION',
'service_name': data.serviceName,
'component_name': data.componentName,
'parameters': data.parameters
}
},
"Requests/resource_filters": [{"service_name" : data.serviceName, "component_name" : data.componentName}]
})
}
}
Expand Down

0 comments on commit 0f23e3d

Please sign in to comment.