This is an automated email from the ASF dual-hosted git repository.
hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new f81465c AMBARI-25486. Configs page not loading after Ambari upgrade
(#3184) (hiveww via dgrinenko)
f81465c is described below
commit f81465cb7e32077e96f5e3c1a6821f707c1f45b7
Author: Alexander Antonenko <[email protected]>
AuthorDate: Tue Jun 30 18:27:27 2020 +0300
AMBARI-25486. Configs page not loading after Ambari upgrade (#3184) (hiveww
via dgrinenko)
---
ambari-web/app/mappers/configs/config_groups_mapper.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/mappers/configs/config_groups_mapper.js
b/ambari-web/app/mappers/configs/config_groups_mapper.js
index e735d84..d53b307 100644
--- a/ambari-web/app/mappers/configs/config_groups_mapper.js
+++ b/ambari-web/app/mappers/configs/config_groups_mapper.js
@@ -120,7 +120,13 @@ App.configGroupsMapper = App.QuickDataMapper.create({
* @private
*/
_getAllHosts: function() {
- return App.get('allHostNames.length') ? App.get('allHostNames') :
Object.keys(App.get('router.installerController.content.hosts'));
+ var hosts;
+ try {
+ hosts = App.get('allHostNames.length') ? App.get('allHostNames') :
Object.keys(App.get('router.installerController.content.hosts'));
+ } catch (e){
+ hosts = [];
+ }
+ return hosts;
},
/**