This is an automated email from the ASF dual-hosted git repository. atkach 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 6d7ef71 AMBARI-24639 Not able to turn off maintenance mode for a host. 6d7ef71 is described below commit 6d7ef715d06fb5a8b7e2ba78d20e881de4227d1b Author: Andrii Tkach <atk...@apache.org> AuthorDate: Fri Sep 14 12:10:43 2018 +0300 AMBARI-24639 Not able to turn off maintenance mode for a host. --- ambari-web/app/controllers/main/host/details.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js index 5ac5911..0d6bc44 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -2285,7 +2285,8 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow var message = Em.I18n.t('hosts.host.details.for.postfix').format(context.label); var popupInfo = Em.I18n.t('hosts.passiveMode.popup').format(context.active ? 'On' : 'Off', this.get('content.hostName')); if (state === 'OFF') { - var hostVersion = this.get('content.stackVersions') && this.get('content.stackVersions').findProperty('isCurrent').get('repoVersion'), + var currentHostVersion = this.get('content.stackVersions') && this.get('content.stackVersions').findProperty('isCurrent'), + hostVersion = currentHostVersion && currentHostVersion.get('repoVersion'), currentVersion = App.StackVersion.find().findProperty('isCurrent'), clusterVersion = currentVersion && currentVersion.get('repositoryVersion.repositoryVersion'); if (hostVersion !== clusterVersion) {