ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rz...@apache.org
Subject [50/50] ambari git commit: AMBARI-18268 - Compare versions does not work in some cases (rzang)
Date Fri, 26 Aug 2016 20:48:21 GMT
AMBARI-18268 - Compare versions does not work in some cases (rzang)


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

Branch: refs/heads/2.4.0-maint
Commit: 59175b7aa1ddb74b85551c632e3ce42fed8f0c85
Parents: 5eecadb
Author: Richard Zang <rzang@apache.org>
Authored: Fri Aug 26 13:41:07 2016 -0700
Committer: Richard Zang <rzang@apache.org>
Committed: Fri Aug 26 13:45:54 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/59175b7a/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 c7d8322..aa595ca 100644
--- a/ambari-web/app/mixins/common/configs/configs_comparator.js
+++ b/ambari-web/app/mixins/common/configs/configs_comparator.js
@@ -131,7 +131,10 @@ App.ConfigsComparator = Em.Mixin.create({
         }
         if (configuration.properties_attributes && configuration.properties_attributes.final)
{
           for (var final in configuration.properties_attributes.final) {
-            serviceVersionMap[item.service_config_version][final + '-' + configuration.type].isFinal
= (configuration.properties_attributes.final[final] === 'true');
+            var config = serviceVersionMap[item.service_config_version][final + '-' + configuration.type];
+            if (config) {
+              config.isFinal = (configuration.properties_attributes.final[final] === 'true');
+            }
           }
         }
       }, this);


Mime
View raw message