From 5fb938d6d6445b98cbcff0d00ee60e14edc6f61b Mon Sep 17 00:00:00 2001 From: cthuang Date: Fri, 4 Sep 2020 15:18:14 +0100 Subject: [PATCH] TUN-3345: tunnel run accepts name of tunnel as argument --- cmd/cloudflared/tunnel/subcommands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/tunnel/subcommands.go b/cmd/cloudflared/tunnel/subcommands.go index f9792d15..4c61370e 100644 --- a/cmd/cloudflared/tunnel/subcommands.go +++ b/cmd/cloudflared/tunnel/subcommands.go @@ -316,7 +316,7 @@ func runCommand(c *cli.Context) error { if c.NArg() != 1 { return cliutil.UsageError(`"cloudflared tunnel run" requires exactly 1 argument, the ID or name of the tunnel to run.`) } - tunnelID, err := uuid.Parse(c.Args().First()) + tunnelID, err := sc.findID(c.Args().First()) if err != nil { return errors.Wrap(err, "error parsing tunnel ID") }