From 6ec7f6b62a98df6105b97422bad438fc1aae9aa8 Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Wed, 28 Aug 2024 13:40:47 -0300 Subject: [PATCH] fix: don't use ui endpoint for version checking (#3992) --- cli/config/version.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cli/config/version.go b/cli/config/version.go index d5cb882922..fd60e69c8f 100644 --- a/cli/config/version.go +++ b/cli/config/version.go @@ -15,12 +15,6 @@ const defaultVersionExtension = "json" func GetVersion(ctx context.Context, cfg Config) (string, bool) { result := fmt.Sprintf(`CLI: %s`, Version) - if cfg.UIEndpoint != "" { - scheme, endpoint, path, _ := ParseServerURL(cfg.UIEndpoint) - cfg.Scheme = scheme - cfg.Endpoint = endpoint - cfg.ServerPath = path - } client := GetAPIClient(cfg) if cfg.IsEmpty() {