Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 c91d18cac -> 8ccf20d6e


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/8ccf20d6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8ccf20d6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8ccf20d6

Branch: refs/heads/branch-2.4
Commit: 8ccf20d6e1fa03ad58dcc57a0cff551ad2e9e8a8
Parents: c91d18c
Author: Andrii Tkach <[email protected]>
Authored: Wed Jul 27 20:51:44 2016 +0300
Committer: Andrii Tkach <[email protected]>
Committed: Wed Jul 27 21:58:10 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/8ccf20d6/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index e97f08d..3dd8926 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -477,9 +477,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;
   },

Reply via email to