From 8a52c1a95bc4273d3499a3a6f055790e98d3d06f Mon Sep 17 00:00:00 2001 From: Sonal Agrawal <88306488+sonal-ridecell@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:30:48 +0530 Subject: [PATCH] Update proxy.go - Use json format when querying tsh apps --- pkg/cmd/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/proxy.go b/pkg/cmd/proxy.go index 89bf6b5..065492c 100644 --- a/pkg/cmd/proxy.go +++ b/pkg/cmd/proxy.go @@ -48,7 +48,7 @@ var proxyCmd = &cobra.Command{ RunE: func(cmd *cobra.Command, args []string) error { pterm.Info.Println("Checking teleport application") - err := exec.ExecuteShellCommand("tsh apps ls app_name="+args[0]+" | grep ridectl || exit 1", false) + err := exec.ExecuteShellCommand("tsh apps ls app_name="+args[0]+" --format=json | grep ridectl || exit 1", false) if err != nil { return fmt.Errorf("the teleport application with ridectl label does not exists or you do not have access to it, %s", err) }