ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject ambari git commit: AMBARI-13230. Comparing configs works wrong for some services (akovalenko)
Date Thu, 24 Sep 2015 16:56:13 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 b01b0da30 -> d3cbeb6da


AMBARI-13230. Comparing configs works wrong for some services (akovalenko)


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

Branch: refs/heads/branch-2.1
Commit: d3cbeb6dac6503f8cb8c431769adedaf9e3b0275
Parents: b01b0da
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Thu Sep 24 19:46:15 2015 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Thu Sep 24 19:46:43 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/mixins/common/configs/configs_comparator.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d3cbeb6d/ambari-web/app/mixins/common/configs/configs_comparator.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/configs_comparator.js b/ambari-web/app/mixins/common/configs/configs_comparator.js
index 191a3a3..cda5407 100644
--- a/ambari-web/app/mixins/common/configs/configs_comparator.js
+++ b/ambari-web/app/mixins/common/configs/configs_comparator.js
@@ -270,8 +270,8 @@ App.ConfigsComparator = Em.Mixin.create({
    * @method hasCompareDiffs
    */
   hasCompareDiffs: function (originalConfig, compareConfig) {
-    var originalValue = Em.get(originalConfig, 'value');
-    var compareValue = Em.get(compareConfig, 'value');
+    var originalValue = App.config.trimProperty({ value: Em.get(originalConfig, 'value'),
displayType: 'advanced' });
+    var compareValue = App.config.trimProperty({ value: Em.get(compareConfig, 'value'), displayType:
'advanced' });
 
     if (originalValue.toArray) {
       originalValue = originalValue.toArray();


Mime
View raw message