Просмотр исходного кода

AMBARI-7341 "Restart all" command for services does not work. (ababiichuk)

aBabiichuk 10 лет назад
Родитель
Сommit
246ae7239c
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      ambari-web/app/utils/batch_scheduled_requests.js

+ 3 - 1
ambari-web/app/utils/batch_scheduled_requests.js

@@ -68,6 +68,8 @@ module.exports = {
    * Facade-function for restarting host components of specific service
    * Facade-function for restarting host components of specific service
    * @param {String} serviceName for which service hostComponents should be restarted
    * @param {String} serviceName for which service hostComponents should be restarted
    * @param {bool} staleConfigsOnly restart only hostComponents with <code>staleConfig</code> true
    * @param {bool} staleConfigsOnly restart only hostComponents with <code>staleConfig</code> true
+   * @param {Object} query
+   * @param {bool} runMmOperation
    */
    */
   restartAllServiceHostComponents: function(serviceName, staleConfigsOnly, query, runMmOperation) {
   restartAllServiceHostComponents: function(serviceName, staleConfigsOnly, query, runMmOperation) {
     var self = this;
     var self = this;
@@ -77,7 +79,7 @@ module.exports = {
       this.turnOnOffPassiveRequest('ON', Em.I18n.t('passiveState.turnOnFor').format(serviceName), serviceName);
       this.turnOnOffPassiveRequest('ON', Em.I18n.t('passiveState.turnOnFor').format(serviceName), serviceName);
     }
     }
     this.getComponentsFromServer({
     this.getComponentsFromServer({
-      services: services,
+      services: [serviceName],
       staleConfigs: staleConfigsOnly ? staleConfigsOnly : null,
       staleConfigs: staleConfigsOnly ? staleConfigsOnly : null,
       passiveState: 'OFF',
       passiveState: 'OFF',
       displayParams: ['host_components/HostRoles/component_name']
       displayParams: ['host_components/HostRoles/component_name']