You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2017/06/08 19:22:19 UTC
[05/50] [abbrv] ambari git commit: AMBARI-21132 - Export cluster_name
in the cluster template file (Amruta Borkar via sangeetar)
AMBARI-21132 - Export cluster_name in the cluster template file (Amruta Borkar via sangeetar)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/dfb5d392
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/dfb5d392
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/dfb5d392
Branch: refs/heads/branch-feature-AMBARI-20859
Commit: dfb5d392067a581df27b59c0f5077729f483e1db
Parents: 7a0eda7
Author: Sangeeta Ravindran <sa...@apache.org>
Authored: Thu Jun 1 11:17:31 2017 -0700
Committer: Sangeeta Ravindran <sa...@apache.org>
Committed: Thu Jun 1 11:17:31 2017 -0700
----------------------------------------------------------------------
ambari-web/app/controllers/wizard/step8_controller.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/dfb5d392/ambari-web/app/controllers/wizard/step8_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js
index 6f65953..fa44a24 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -2028,7 +2028,8 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz
"config_recommendation_strategy" : "NEVER_APPLY",
"provision_action" : "INSTALL_AND_START",
"configurations": [],
- "host_groups": cluster_template_host_groups.filter(function (item) { return item.hosts.length > 0; })
+ "host_groups": cluster_template_host_groups.filter(function (item) { return item.hosts.length > 0; }),
+ "Clusters": {'cluster_name': App.clusterStatus.clusterName}
};
fileUtils.downloadTextFile(JSON.stringify(cluster_template), 'json', 'clustertemplate.json')
},