You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/11/08 01:47:17 UTC
ambari git commit: AMBARI-8223. Slider View:
'site.global.ganglia_enabled' set to true even when monitoring disabled
(srimanth)
Repository: ambari
Updated Branches:
refs/heads/branch-1.7.0 024e24ed2 -> 5ce5d2c85
AMBARI-8223. Slider View: 'site.global.ganglia_enabled' set to true even when monitoring disabled (srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5ce5d2c8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5ce5d2c8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5ce5d2c8
Branch: refs/heads/branch-1.7.0
Commit: 5ce5d2c851068a79a9a9dd47a3ccfcd1cc72ff44
Parents: 024e24e
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Fri Nov 7 16:26:29 2014 -0800
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Fri Nov 7 16:38:36 2014 -0800
----------------------------------------------------------------------
.../app/controllers/createAppWizard/step3_controller.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5ce5d2c8/contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js b/contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js
index 81552b5..dce84e5 100644
--- a/contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js
+++ b/contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js
@@ -238,7 +238,16 @@ App.CreateAppWizardStep3Controller = Ember.ObjectController.extend({
* @method saveConfigs
*/
saveConfigs: function () {
- this.set('newAppConfigs', this.get('configsObject'));
+ var configsToSet = this.get('configsObject');
+ if (configsToSet['site.global.ganglia_enabled']!=null) {
+ if (configsToSet['site.global.ganglia_server_host']!=null &&
+ configsToSet['site.global.ganglia_server_id']!=null) {
+ configsToSet['site.global.ganglia_enabled'] = "true";
+ } else {
+ configsToSet['site.global.ganglia_enabled'] = "false";
+ }
+ }
+ this.set('newAppConfigs', configsToSet);
},
actions: {