You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by GitBox <gi...@apache.org> on 2019/01/15 11:03:11 UTC
[ambari] Diff for: [GitHub] hiveww closed pull request #2738: AMBARI-25060.
Install wizard fails on step 8
diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js
index dd37f9f7812..e47b48b7d68 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -503,8 +503,8 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz
}
else {
var componentName = component.get('isClient') ? Em.I18n.t('common.client').toUpperCase() : component.get('componentName');
- var hostsLength = this.get('content.slaveComponentHosts')
- .findProperty('componentName', componentName).hosts.length;
+ var component = this.get('content.slaveComponentHosts').findProperty('componentName', componentName);
+ var hostsLength = component ? component.hosts.length : 0;
componentValue = hostsLength + Em.I18n.t('installer.step8.host' + (hostsLength > 1 ? 's' : ''));
}
}
With regards,
Apache Git Services