AMBARI-11793. After upgrade to Ambari 2.1, YARN save settings not working (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ddecdd17 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ddecdd17 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ddecdd17 Branch: refs/heads/branch-2.1 Commit: ddecdd17a6c3fe24d61c7b94e775e4897ee36187 Parents: 094da61 Author: Alex Antonenko <[email protected]> Authored: Mon Jun 8 22:12:56 2015 +0300 Committer: Alex Antonenko <[email protected]> Committed: Tue Jun 9 00:27:39 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/main/service/info/configs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ddecdd17/ambari-web/app/controllers/main/service/info/configs.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js index 59e03ef..a21baa1 100644 --- a/ambari-web/app/controllers/main/service/info/configs.js +++ b/ambari-web/app/controllers/main/service/info/configs.js @@ -962,7 +962,9 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM componentConfig.get('configs').pushObject(serviceConfigProperty); serviceConfigProperty.validate(); }, this); - componentConfig.set('initConfigsLength', componentConfig.get('configs.length')); + Em.run.next(function () { + componentConfig.set('initConfigsLength', componentConfig.get('configs.length')); + }); }, /**
