浏览代码

AMBARI-8513. "Host doesn't exist in database" exception in log after failed agent registration (alexantonenko)

Alex Antonenko 10 年之前
父节点
当前提交
5b6223f6b0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ambari-web/app/controllers/wizard/step3_controller.js

+ 2 - 2
ambari-web/app/controllers/wizard/step3_controller.js

@@ -715,7 +715,7 @@ App.WizardStep3Controller = Em.Controller.extend({
   },
 
   doCheckJDK: function () {
-    var hostsNames = this.get('bootHosts').getEach('name').join(",");
+    var hostsNames = this.get('bootHosts').filterProperty('bootStatus', 'REGISTERED').getEach('name').join(",");
     var javaHome = this.get('javaHome');
     var jdkLocation = this.get('jdkLocation');
     App.ajax.send({
@@ -826,7 +826,7 @@ App.WizardStep3Controller = Em.Controller.extend({
   },
 
   getHostNameResolution: function () {
-    var hosts = this.get('bootHosts').getEach('name').join(",");
+    var hosts = this.get('bootHosts').filterProperty('bootStatus', 'REGISTERED').getEach('name').join(",");
     var jdk_location = App.router.get('clusterController.ambariProperties.jdk_location');
     var RequestInfo = {
       "action": "check_host",