From 7dd349cde28e04082da42e1138839006e555c80f Mon Sep 17 00:00:00 2001 From: Samuel K Date: Thu, 12 Nov 2026 16:08:16 -0600 Subject: [PATCH] refactor(workspace): rename troubleshoot DevsyProInstances key --- cmd/workspace/troubleshoot.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/workspace/troubleshoot.go b/cmd/workspace/troubleshoot.go index 85f895295..ee599d409 100644 --- a/cmd/workspace/troubleshoot.go +++ b/cmd/workspace/troubleshoot.go @@ -58,14 +58,14 @@ func NewTroubleshootCmd(flags *flags.GlobalFlags) *cobra.Command { } type troubleshootInfo struct { - CLIVersion string - Config *config.Config - Providers map[string]provider.ProviderWithDefault - DevsyProInstances []DevsyPlatformInstance - Workspace *pkgprovider.Workspace - WorkspaceStatus client.Status - WorkspaceTroubleshoot *managementv1.DevsyWorkspaceInstanceTroubleshoot - DaemonStatus *daemon.Status + CLIVersion string + Config *config.Config + Providers map[string]provider.ProviderWithDefault + DevsyPlatformInstances []DevsyPlatformInstance + Workspace *pkgprovider.Workspace + WorkspaceStatus client.Status + WorkspaceTroubleshoot *managementv1.DevsyWorkspaceInstanceTroubleshoot + DaemonStatus *daemon.Status Errors []PrintableError `json:",omitempty"` } @@ -105,7 +105,7 @@ func (cmd *TroubleshootCmd) Run(ctx context.Context, args []string) { info.addErr("collect providers", err) } - info.DevsyProInstances, err = collectPlatformInfo(info.Config) + info.DevsyPlatformInstances, err = collectPlatformInfo(info.Config) if err != nil { info.addErr("collect platform info", err) } @@ -136,7 +136,7 @@ func (cmd *TroubleshootCmd) collectWorkspaceInfo( if info.Workspace.Platform != nil { info.WorkspaceTroubleshoot, err = collectWorkspacePlatformTroubleshoot( - ctx, info.Config, info.Workspace, info.DevsyProInstances, + ctx, info.Config, info.Workspace, info.DevsyPlatformInstances, ) if err != nil { info.addErr("collect platform workspace info", err)