Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 a30f44912 -> ceab346d7


AMBARI-12470. Can't switch config group on the host's configs page 
(alexantonenko)


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

Branch: refs/heads/branch-2.1
Commit: ceab346d76105a4de5e4561f3ff2879d9957a76f
Parents: 2da898b
Author: Alex Antonenko <hiv...@gmail.com>
Authored: Tue Jul 21 17:24:23 2015 +0300
Committer: Alex Antonenko <hiv...@gmail.com>
Committed: Tue Jul 21 17:30:08 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/mixins/main/service/configs/config_overridable.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ceab346d/ambari-web/app/mixins/main/service/configs/config_overridable.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/main/service/configs/config_overridable.js 
b/ambari-web/app/mixins/main/service/configs/config_overridable.js
index 324ce1e..f2a3916 100644
--- a/ambari-web/app/mixins/main/service/configs/config_overridable.js
+++ b/ambari-web/app/mixins/main/service/configs/config_overridable.js
@@ -271,6 +271,7 @@ App.ConfigOverridable = Em.Mixin.create({
    * @method updateConfigurationGroup
    */
   updateConfigurationGroup: function (configGroup, successCallback, 
errorCallback) {
+    var configSiteTags = configGroup.get('configSiteTags') || [];
     var putConfigGroup = {
       ConfigGroup: {
         group_name: configGroup.get('name'),
@@ -281,7 +282,7 @@ App.ConfigOverridable = Em.Mixin.create({
             host_name: h
           };
         }),
-        desired_configs: configGroup.get('configSiteTags').map(function (cst) {
+        desired_configs: configSiteTags.map(function (cst) {
           return {
             type: cst.get('site'),
             tag: cst.get('tag')

Reply via email to