ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-8709. Hive services actions includes CLEAN (onechiporenko)
Date Mon, 15 Dec 2014 13:39:48 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 44501c12b -> 59442e3ba


AMBARI-8709. Hive services actions includes CLEAN (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 59442e3bab7d4488a211155d6a720b320b1b14b6
Parents: 44501c1
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Mon Dec 15 15:32:18 2014 +0200
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Mon Dec 15 15:38:56 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/mappers/stack_service_mapper.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/59442e3b/ambari-web/app/mappers/stack_service_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/stack_service_mapper.js b/ambari-web/app/mappers/stack_service_mapper.js
index 43cfd86..7d270d8 100644
--- a/ambari-web/app/mappers/stack_service_mapper.js
+++ b/ambari-web/app/mappers/stack_service_mapper.js
@@ -88,7 +88,11 @@ App.stackServiceMapper = App.QuickDataMapper.create({
         serviceComponent.StackServiceComponents.id = serviceComponent.StackServiceComponents.component_name;
         serviceComponent.StackServiceComponents.dependencies = dependencies;
         serviceComponents.push(serviceComponent.StackServiceComponents);
-        stackServiceComponents.push(this.parseIt(serviceComponent.StackServiceComponents,
this.get('component_config')));
+        var parsedResult = this.parseIt(serviceComponent.StackServiceComponents, this.get('component_config'));
+        if (parsedResult.id == 'MYSQL_SERVER') {
+          parsedResult.custom_commands = parsedResult.custom_commands.without('CLEAN');
+        }
+        stackServiceComponents.push(parsedResult);
       }, this);
       stackService.stack_id = stackService.stack_name + '-' + stackService.stack_version;
       stackService.service_components = serviceComponents;


Mime
View raw message