ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-13539 Wrong cluster-env version sent during validation. (ababiichuk)
Date Fri, 23 Oct 2015 11:24:27 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d30b5f036 -> a61a83fae


AMBARI-13539 Wrong cluster-env version sent during validation. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: a61a83fae8170ebf3be7d4bc58b91b75dc7e0b32
Parents: d30b5f0
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Fri Oct 23 14:19:14 2015 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Fri Oct 23 14:19:43 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/a61a83fa/ambari-web/app/mixins/common/serverValidator.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/serverValidator.js b/ambari-web/app/mixins/common/serverValidator.js
index 04c5882..4d22fdd 100644
--- a/ambari-web/app/mixins/common/serverValidator.js
+++ b/ambari-web/app/mixins/common/serverValidator.js
@@ -304,8 +304,8 @@ App.ServerValidatorMixin = Em.Mixin.create({
       error: 'validationError'
     }).done(function (data) {
       App.router.get('configurationController').getConfigsByTags([{
-        siteName: data.items[0].type,
-        tagName: data.items[0].tag
+        siteName: data.items[data.items.length - 1].type,
+        tagName: data.items[data.items.length - 1].tag
       }]).done(function (clusterEnvConfigs) {
         var configsObject = clusterEnvConfigs[0].properties;
         var configsArray = [];


Mime
View raw message