You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2015/08/31 21:34:58 UTC
ambari git commit: AMBARI-12783. Ambari Views: Capacity Scheduler
View - Downloaded xml with configs is not actually proper xml. (Nitiraj Singh
Rathore via yusaku)
Repository: ambari
Updated Branches:
refs/heads/trunk fc64eae4f -> bcd5cfb66
AMBARI-12783. Ambari Views: Capacity Scheduler View - Downloaded xml with configs is not actually proper xml. (Nitiraj Singh Rathore via yusaku)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bcd5cfb6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bcd5cfb6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bcd5cfb6
Branch: refs/heads/trunk
Commit: bcd5cfb66c40788f77ad27b7fa4c1e8f1feb1adb
Parents: fc64eae
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Mon Aug 31 12:34:12 2015 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Mon Aug 31 12:34:12 2015 -0700
----------------------------------------------------------------------
.../capacity-scheduler/src/main/resources/ui/app/store.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/bcd5cfb6/contrib/views/capacity-scheduler/src/main/resources/ui/app/store.js
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/app/store.js b/contrib/views/capacity-scheduler/src/main/resources/ui/app/store.js
index 4297b17..44b5800 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/store.js
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/store.js
@@ -136,12 +136,14 @@ App.ApplicationStore = DS.Store.extend({
config += propKey + '=' + props[propKey] + '\n';
});
} else if (fmt === 'xml') {
+ config += '<?xml version="1.0"?>\n<configuration>\n';
Object.keys(props).forEach(function (propKey) {
- config += '<property>\n' +
- ' <name>' + propKey + '</name>\n' +
- ' <value>' + props[propKey] + '</value>\n' +
- '</property>\n';
+ config += ' <property>\n' +
+ ' <name>' + propKey + '</name>\n' +
+ ' <value>' + props[propKey] + '</value>\n' +
+ ' </property>\n';
});
+ config += "</configuration>"
}
return config;