Explorar o código

AMBARI-3386 Overall progress is shown as 0% on Retry during Install phase

aBabiichuk %!s(int64=11) %!d(string=hai) anos
pai
achega
3d4e43bdee
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      ambari-web/app/controllers/wizard/step9_controller.js

+ 3 - 0
ambari-web/app/controllers/wizard/step9_controller.js

@@ -680,6 +680,9 @@ App.WizardStep9Controller = Em.Controller.extend({
       var actionsPerHost = tasksData.filterProperty('Tasks.host_name', _host.name); // retrieved from polled Data
       var actionsPerHost = tasksData.filterProperty('Tasks.host_name', _host.name); // retrieved from polled Data
       if (actionsPerHost.length === 0) {
       if (actionsPerHost.length === 0) {
         _host.set('message', this.t('installer.step9.host.status.nothingToInstall'));
         _host.set('message', this.t('installer.step9.host.status.nothingToInstall'));
+        if (_host.get('progress') == 0) {
+          _host.set('progress', '33');
+        }
         console.log("INFO: No task is hosted on the host");
         console.log("INFO: No task is hosted on the host");
       }
       }
       if (actionsPerHost !== null && actionsPerHost !== undefined && actionsPerHost.length !== 0) {
       if (actionsPerHost !== null && actionsPerHost !== undefined && actionsPerHost.length !== 0) {