ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-12103. Add Host Wizard: Adding host with no components fails (alexantonenko)
Date Tue, 23 Jun 2015 21:16:49 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 1efe77ebb -> 16d75029c


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/16d75029
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/16d75029
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/16d75029

Branch: refs/heads/branch-2.1
Commit: 16d75029cff10f1e95a60f9d6cda98ab0324c985
Parents: 1efe77e
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Tue Jun 23 23:31:51 2015 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Jun 24 00:16:42 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step9_controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/16d75029/ambari-web/app/controllers/wizard/step9_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step9_controller.js b/ambari-web/app/controllers/wizard/step9_controller.js
index b0c9b7b..a58e8b8 100644
--- a/ambari-web/app/controllers/wizard/step9_controller.js
+++ b/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');
     var self = this;
     var totalProgress = 0;
-    var tasksData = polledData.tasks;
+    var tasksData = polledData.tasks || [];
     console.log("The value of tasksData is: ", tasksData);
     var requestId = this.get('content.cluster.requestId');
     tasksData.setEach('Tasks.request_id', requestId);


Mime
View raw message