Make metrics a requirement for tunnel ready command
This commit is contained in:
parent
95dff74fc8
commit
c39f0ae317
|
@ -413,6 +413,10 @@ func buildReadyCommand() *cli.Command {
|
|||
|
||||
func readyCommand(c *cli.Context) error {
|
||||
metricsOpts := c.String("metrics")
|
||||
if !c.IsSet("metrics") {
|
||||
return fmt.Errorf("--metrics has to be provided")
|
||||
}
|
||||
|
||||
requestURL := fmt.Sprintf("http://%s/ready", metricsOpts)
|
||||
res, err := http.Get(requestURL)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue