Skip to content

Commit a084fe0

Browse files
huangzhibojonn-smith
authored andcommitted
fix ping url (#34)
* fix ping url When my CROMWELL_URL is "http://localhost:8000", the ":8000" string should be trimed. * change the regex change :.* to :[0-9]*
1 parent aa3e47d commit a084fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cromshell

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function checkPrerequisites
237237
function assertCanCommunicateWithServer
238238
{
239239
# Make sure we can talk to the cromwell server:
240-
serverName=$( echo ${1}| sed 's#.*://##g' )
240+
serverName=$( echo ${1}| sed 's#.*://##g'| sed 's#:[0-9]*##g' )
241241
$PING_CMD $serverName &> /dev/null
242242
r=$?
243243
[[ $r -ne 0 ]] && error "Error: Cannot communicate with Cromwell server: $serverName" && exit 4

0 commit comments

Comments
 (0)