From 23e5659c758cad42d5a993958003fb8da68f4d13 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 8 Jun 2022 12:58:34 +0300 Subject: [PATCH] fix: Stop showing resources after `coder create` This change avoids a confusing UX where the workspace agent shows "connecting" after create has completed. Fixes #1036 --- cli/create.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/cli/create.go b/cli/create.go index 4a178bf1f5a2c..e7dccb90e680c 100644 --- a/cli/create.go +++ b/cli/create.go @@ -242,19 +242,7 @@ func create() *cobra.Command { return err } - resources, err = client.WorkspaceResourcesByBuild(cmd.Context(), workspace.LatestBuild.ID) - if err != nil { - return err - } - - err = cliui.WorkspaceResources(cmd.OutOrStdout(), resources, cliui.WorkspaceResourcesOptions{ - WorkspaceName: workspaceName, - }) - if err != nil { - return err - } - - _, _ = fmt.Fprintf(cmd.OutOrStdout(), "The %s workspace has been created!\n", cliui.Styles.Keyword.Render(workspace.Name)) + _, _ = fmt.Fprintf(cmd.OutOrStdout(), "\nThe %s workspace has been created!\n", cliui.Styles.Keyword.Render(workspace.Name)) return nil }, }