fix: remove orphan rbac warning message (#6979)

The request will fail if the user doesn't have permissions, so it seems
useless to output this.
This commit is contained in:
Kyle Carberry 2023-04-03 11:15:56 -05:00 committed by GitHub
parent 55c0b26977
commit 4ee01dc95c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -37,14 +37,6 @@ func (r *RootCmd) deleteWorkspace() *clibase.Cmd {
}
var state []byte
if orphan {
cliui.Warn(
inv.Stderr,
"Orphaning workspace requires template edit permission",
)
}
build, err := client.CreateWorkspaceBuild(inv.Context(), workspace.ID, codersdk.CreateWorkspaceBuildRequest{
Transition: codersdk.WorkspaceTransitionDelete,
ProvisionerState: state,