Repository: ambari Updated Branches: refs/heads/trunk fef5b218f -> 84ad5db98
AMBARI-6215. Default add host sequence triggers many unseen before cluster-wide operations (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/84ad5db9 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/84ad5db9 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/84ad5db9 Branch: refs/heads/trunk Commit: 84ad5db9808262594d398356f864d2200d47b4e1 Parents: fef5b21 Author: Alex Antonenko <[email protected]> Authored: Fri Jun 20 04:13:27 2014 +0300 Committer: Alex Antonenko <[email protected]> Committed: Fri Jun 20 04:13:27 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step9_controller.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/84ad5db9/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 1cf5e8b..9b9262b 100644 --- a/ambari-web/app/controllers/wizard/step9_controller.js +++ b/ambari-web/app/controllers/wizard/step9_controller.js @@ -292,8 +292,12 @@ App.WizardStep9Controller = Em.Controller.extend({ */ loadHosts: function () { var hosts = this.get('content.hosts'); + + //flag identify whether get all hosts or only NewHosts(newly added) hosts + var getOnlyNewHosts = (this.get('content.controllerName') !== 'addServiceController'); + for (var index in hosts) { - if (hosts[index].bootStatus === 'REGISTERED') { + if (hosts[index].bootStatus === 'REGISTERED' && (!getOnlyNewHosts || !hosts[index].isInstalled)) { var hostInfo = App.HostInfo.create({ name: hosts[index].name, status: (hosts[index].status) ? hosts[index].status : 'info',
