Repository: ambari Updated Branches: refs/heads/trunk f428a6b97 -> 9056daefa
AMBARI-17926 Service config page takes more than 2 mins to load. (atkach) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9056daef Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9056daef Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9056daef Branch: refs/heads/trunk Commit: 9056daefa67647bedac9d70e432e8585b83fabcb Parents: f428a6b Author: Andrii Tkach <[email protected]> Authored: Wed Jul 27 20:51:44 2016 +0300 Committer: Andrii Tkach <[email protected]> Committed: Wed Jul 27 22:03:16 2016 +0300 ---------------------------------------------------------------------- ambari-web/app/utils/config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/9056daef/ambari-web/app/utils/config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js index 1b2bb89..200b3d1 100644 --- a/ambari-web/app/utils/config.js +++ b/ambari-web/app/utils/config.js @@ -498,9 +498,11 @@ App.config = Em.Object.create({ var identitiesMap = {}; Em.get(kerberosDescriptor, 'KerberosDescriptor.kerberos_descriptor.services').forEach(function (service) { this.parseIdentities(service, identitiesMap); - service.components.forEach(function (component) { - this.parseIdentities(component, identitiesMap); - }, this); + if (Array.isArray(service.components)) { + service.components.forEach(function (component) { + this.parseIdentities(component, identitiesMap); + }, this); + } }, this); return identitiesMap; },
