You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2014/09/16 19:52:48 UTC

[3/3] git commit: AMBARI-7341 "Restart all" command for services does not work. (ababiichuk)

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


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

Branch: refs/heads/trunk
Commit: 246ae7239c5a6046a474ce37f310f69b20ee4883
Parents: 34ffd77
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Tue Sep 16 20:48:47 2014 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Tue Sep 16 20:49:02 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/batch_scheduled_requests.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/246ae723/ambari-web/app/utils/batch_scheduled_requests.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/batch_scheduled_requests.js b/ambari-web/app/utils/batch_scheduled_requests.js
index 52bf0d8..7cafdd3 100644
--- a/ambari-web/app/utils/batch_scheduled_requests.js
+++ b/ambari-web/app/utils/batch_scheduled_requests.js
@@ -68,6 +68,8 @@ module.exports = {
    * Facade-function for restarting host components of specific service
    * @param {String} serviceName for which service hostComponents should be restarted
    * @param {bool} staleConfigsOnly restart only hostComponents with <code>staleConfig</code> true
+   * @param {Object} query
+   * @param {bool} runMmOperation
    */
   restartAllServiceHostComponents: function(serviceName, staleConfigsOnly, query, runMmOperation) {
     var self = this;
@@ -77,7 +79,7 @@ module.exports = {
       this.turnOnOffPassiveRequest('ON', Em.I18n.t('passiveState.turnOnFor').format(serviceName), serviceName);
     }
     this.getComponentsFromServer({
-      services: services,
+      services: [serviceName],
       staleConfigs: staleConfigsOnly ? staleConfigsOnly : null,
       passiveState: 'OFF',
       displayParams: ['host_components/HostRoles/component_name']