Skip to content

Commit

Permalink
explicitly prepend http to server address when IP address is used ins…
Browse files Browse the repository at this point in the history
…tead of an url (#145)
  • Loading branch information
SHuang-Broad authored Dec 7, 2020
1 parent c7ea883 commit c2e8c7b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cromshell
Original file line number Diff line number Diff line change
Expand Up @@ -1088,9 +1088,14 @@ function printTaskStatus()
# Bring up a browser window to view timing information on the job.
function timing()
{
local id=${1}
local server_url_for_browser=${2}
turtle
echo "Opening timing information in a web browser for job ID: ${1}"
open ${2}/api/workflows/v1/${1}/timing
echo "Opening timing information in your default web browser for job ID: ${id}"
if [[ ${server_url_for_browser} != "http*" ]]; then
server_url_for_browser="http://${server_url_for_browser}"
fi
open ${server_url_for_browser}/api/workflows/v1/${id}/timing
return $?
}

Expand Down

0 comments on commit c2e8c7b

Please sign in to comment.