Explorar el Código

AMBARI-12103. Add Host Wizard: Adding host with no components fails (alexantonenko)

Alex Antonenko hace 10 años
padre
commit
f7caec5367
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ambari-web/app/controllers/wizard/step9_controller.js

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

@@ -889,7 +889,7 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, {
     console.log('TRACE: Entering host info function');
     console.log('TRACE: Entering host info function');
     var self = this;
     var self = this;
     var totalProgress = 0;
     var totalProgress = 0;
-    var tasksData = polledData.tasks;
+    var tasksData = polledData.tasks || [];
     console.log("The value of tasksData is: ", tasksData);
     console.log("The value of tasksData is: ", tasksData);
     var requestId = this.get('content.cluster.requestId');
     var requestId = this.get('content.cluster.requestId');
     tasksData.setEach('Tasks.request_id', requestId);
     tasksData.setEach('Tasks.request_id', requestId);