ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject [3/3] git commit: AMBARI-7341 "Restart all" command for services does not work. (ababiichuk)
Date Tue, 16 Sep 2014 17:52:48 GMT
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 <ababiichuk@cybervisiontech.com>
Authored: Tue Sep 16 20:48:47 2014 +0300
Committer: aBabiichuk <ababiichuk@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']


Mime
View raw message