Browse Source

AMBARI-2585. Host Check report show hosts without issues. (Aleksandr Kovalenko via srimanth)

Srimanth Gunturi 12 years ago
parent
commit
be7f13762c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-web/app/controllers/wizard/step3_controller.js

+ 1 - 1
ambari-web/app/controllers/wizard/step3_controller.js

@@ -1015,7 +1015,7 @@ App.WizardStep3Controller = Em.Controller.extend({
           var newContent = '';
           var newContent = '';
           newContent += Em.I18n.t('installer.step3.hostWarningsPopup.report.header') + new Date;
           newContent += Em.I18n.t('installer.step3.hostWarningsPopup.report.header') + new Date;
           newContent += Em.I18n.t('installer.step3.hostWarningsPopup.report.hosts');
           newContent += Em.I18n.t('installer.step3.hostWarningsPopup.report.hosts');
-          newContent += warningsByHost.mapProperty('name').join(' ');
+          newContent += warningsByHost.filterProperty('warnings.length').mapProperty('name').join(' ');
           if (content.findProperty('category', 'fileFolders').warnings.length) {
           if (content.findProperty('category', 'fileFolders').warnings.length) {
             newContent += Em.I18n.t('installer.step3.hostWarningsPopup.report.fileFolders');
             newContent += Em.I18n.t('installer.step3.hostWarningsPopup.report.fileFolders');
             newContent += content.findProperty('category', 'fileFolders').warnings.mapProperty('name').join(' ') +  Em.I18n.t('installer.step3.hostWarningsPopup.report.folder');
             newContent += content.findProperty('category', 'fileFolders').warnings.mapProperty('name').join(' ') +  Em.I18n.t('installer.step3.hostWarningsPopup.report.folder');