Skip to content

Commit

Permalink
Print agent host/IP in join command
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 28, 2023
1 parent 7dc8d01 commit 6b5db9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ func MakeJoin() *cobra.Command {
return err
}

fmt.Println("Server IP: " + serverHost)
fmt.Println("Agent: %s Server: "+host, serverHost)
if len(serverURL) > 0 {
fmt.Println("Server URL: " + serverURL)
fmt.Println("Server join URL: " + serverURL)
}

user, _ := command.Flags().GetString("user")
Expand Down

0 comments on commit 6b5db9e

Please sign in to comment.