You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/19 17:28:54 UTC
[ambari] branch trunk updated: AMBARI-25486: Configs page not loading after Ambari upgrade (#3537)
This is an automated email from the ASF dual-hosted git repository.
wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new b201789e74 AMBARI-25486: Configs page not loading after Ambari upgrade (#3537)
b201789e74 is described below
commit b201789e74605b6638d8fdf2afd0ceeb7ca970f9
Author: Yu Hou <52...@qq.com>
AuthorDate: Sun Nov 20 01:28:49 2022 +0800
AMBARI-25486: Configs page not loading after Ambari upgrade (#3537)
---
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 e735d84d39..d53b307972 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;
},
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org