Explorar o código

AMBARI-2438. If HTTPS is enabled, server does not pass correct port during bootstrap. (Dmitry Lysnichenko via swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1494777 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle %!s(int64=12) %!d(string=hai) anos
pai
achega
8f79c64f91

+ 1 - 1
ambari-server/src/main/java/org/apache/ambari/server/bootstrap/BootStrapImpl.java

@@ -64,7 +64,7 @@ public class BootStrapImpl {
         InetAddress.getLocalHost().getCanonicalHostName());
     this.clusterOsType = conf.getServerOsType();
     this.projectVersion = ambariMetaInfo.getServerVersion();
-    this.serverPort = conf.getClientApiPort();
+    this.serverPort = (conf.getApiSSLAuthentication())? conf.getClientSSLApiPort() : conf.getClientApiPort();
   }
 
   /**