rabbah commented on a change in pull request #4504: Remove default port on api 
host.
URL: 
https://github.com/apache/incubator-openwhisk/pull/4504#discussion_r290268707
 
 

 ##########
 File path: 
common/scala/src/main/scala/org/apache/openwhisk/core/WhiskConfig.scala
 ##########
 @@ -54,8 +54,16 @@ class WhiskConfig(requiredProperties: Map[String, String],
   val dockerEndpoint = this(WhiskConfig.dockerEndpoint)
   val dockerPort = this(WhiskConfig.dockerPort)
 
-  val wskApiHost = this(WhiskConfig.wskApiProtocol) + "://" + 
this(WhiskConfig.wskApiHostname) + ":" + this(
-    WhiskConfig.wskApiPort)
+  val wskApiHost = {
 
 Review comment:
   the change caused many tests to fail - it appears in a number of unit tests, 
the value of the string is just `://:` - and I think to guard the values i 
might end up with more code than the original version so im inclined to just 
use the explicit removal of the port. wdyt.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to