Explorar o código

AMBARI-3065 takes long time for registration to fail on manual w/bogus hostname. (atkach)

atkach %!s(int64=11) %!d(string=hai) anos
pai
achega
bbb4553b34
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      ambari-web/app/controllers/wizard/step3_controller.js

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

@@ -25,7 +25,12 @@ App.WizardStep3Controller = Em.Controller.extend({
   bootHosts: [],
   registeredHosts: [],
   registrationStartedAt: null,
-  registrationTimeoutSecs: 120,
+  registrationTimeoutSecs: function(){
+    if(this.get('content.installOptions.manualInstall')){
+      return 15;
+    }
+    return 120;
+  }.property('content.installOptions.manualInstall'),
   stopBootstrap: false,
   isSubmitDisabled: true,