ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-12170 Renaming and editing hosts of the same config group fails saving
Date Sat, 27 Jun 2015 10:49:02 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk bdca9b676 -> 5930dc772


AMBARI-12170 Renaming and editing hosts of the same config group fails saving


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

Branch: refs/heads/trunk
Commit: 5930dc7729719760cbdaff4d0237fc3e73a59f9c
Parents: bdca9b6
Author: Andrii Tkach <atkach@hortonworks.com>
Authored: Fri Jun 26 18:27:58 2015 +0300
Committer: Andrii Tkach <atkach@hortonworks.com>
Committed: Sat Jun 27 13:48:41 2015 +0300

----------------------------------------------------------------------
 .../controllers/main/service/manage_config_groups_controller.js    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5930dc77/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
index 93c4457..ecbb868 100644
--- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
+++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
@@ -788,7 +788,7 @@ App.ManageConfigGroupsController = Em.Controller.extend(App.ConfigOverridable,
{
 
         modifiedConfigGroups.toClearHosts.forEach(function (cg) {
           counter++;
-          var initialGroupState = modifiedConfigGroups.initialGroups.findProperty('name',
cg.get('name'));
+          var initialGroupState = modifiedConfigGroups.initialGroups.findProperty('id', cg.get('id'));
           configsController.clearConfigurationGroupHosts(cg, initialGroupState, doneFunction,
doneFunction);
         }, this);
         modifiedConfigGroups.toDelete.forEach(function (cg) {


Mime
View raw message