Forráskód Böngészése

AMBARI-5386. Deploy stuck during generating tasks on Review page (not always reproduced). (yusaku)

Yusaku Sako 11 éve
szülő
commit
fa47bc20c9
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      ambari-web/app/controllers/wizard/step8_controller.js

+ 6 - 1
ambari-web/app/controllers/wizard/step8_controller.js

@@ -874,6 +874,10 @@ App.WizardStep8Controller = Em.Controller.extend({
 
   /**
    * Updates local repositories for the Ambari server.
+   * Base URL validation is disabled, since the checks had already run in the Select Stacks page
+   * already (unless the user specifically asked to skip).
+   * TODO: This function should be deleted once we modify App.InstallerController to make
+   * sure that base URLs are saved even when "Skip validation" is checked.
    */
   setLocalRepositories: function () {
     if (this.get('content.controllerName') !== 'installerController' || !App.supports.localRepositories) return;
@@ -888,7 +892,8 @@ App.WizardStep8Controller = Em.Controller.extend({
           url: App.apiPrefix + App.get('stack2VersionURL') + "/operatingSystems/" + os.osType + "/repositories/" + stack.name,
           data: JSON.stringify({
             "Repositories": {
-              "base_url": os.baseUrl
+              "base_url": os.baseUrl,
+              "verify_base_url": false
             }
           })
         });