You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/03/30 19:05:28 UTC

[2/3] ambari git commit: AMBARI-10277. Add host wizard (step 2): Host checks spinner missing (alexantonenko)

AMBARI-10277. Add host wizard (step 2): Host checks spinner missing (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 6fd09d24bf16d8ae76c9acc46df0ee95ffe131a1
Parents: d75309a
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Mar 30 19:58:11 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Mar 30 19:58:11 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step3_controller.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6fd09d24/ambari-web/app/controllers/wizard/step3_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step3_controller.js b/ambari-web/app/controllers/wizard/step3_controller.js
index 4c56afa..d68059e 100644
--- a/ambari-web/app/controllers/wizard/step3_controller.js
+++ b/ambari-web/app/controllers/wizard/step3_controller.js
@@ -534,7 +534,8 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, {
       // Single host : if the only hostname is invalid (data.status == 'ERROR')
       // Multiple hosts : if one or more hostnames are invalid
       // following check will mark the bootStatus as 'FAILED' for the invalid hostname
-      if (data.status == 'ERROR' || data.hostsStatus.length != this.get('bootHosts').length) {
+      var installedHosts = App.Host.find().mapProperty('hostName');
+      if (data.status == 'ERROR' || data.hostsStatus.mapProperty('hostName').removeObjects(installedHosts).length != this.get('bootHosts').length) {
 
         var hosts = this.get('bootHosts');