Skip to content

Commit

Permalink
fix telepresence http server check
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli committed Sep 26, 2024
1 parent 30d245c commit 8a7e17a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kardinal-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ var telepresenceInterceptCmd = &cobra.Command{

// Is the port open and HTTP
if err := isPortOpenAndHTTP(localPort); err != nil {
log.Fatalf("An error occurred checking port '%s': %s", localPort, err)
log.Fatalf("An error occurred checking HTTP server on port '%s': %s", localPort, err)
}

// is Traffic-manager installed
Expand Down Expand Up @@ -424,9 +424,6 @@ func isPortOpenAndHTTP(localPortStr string) error {
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
return stacktrace.NewError("the HTTP server in 'httpServerAddr' did not return a successful response. Got '%d'", resp.StatusCode)
}
return nil
}

Expand Down

0 comments on commit 8a7e17a

Please sign in to comment.