mirror of https://github.com/knative/func.git
fix: update console output to show both host and port using net.JoinHostPort
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
This commit is contained in:
parent
d04ff0a378
commit
b77a031a5a
|
@ -5,6 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
|
@ -282,7 +283,7 @@ func runRun(cmd *cobra.Command, newClient ClientFactory) (err error) {
|
|||
}
|
||||
fmt.Fprintln(cmd.OutOrStdout(), string(jsonData))
|
||||
} else {
|
||||
fmt.Fprintf(cmd.OutOrStderr(), "Running on host port %v\n", job.Port)
|
||||
fmt.Fprintf(cmd.OutOrStderr(), "Function running on %s\n", net.JoinHostPort(job.Host, job.Port))
|
||||
}
|
||||
|
||||
select {
|
||||
|
|
Loading…
Reference in New Issue