Use safe or force workspace delete for cloud backend

This commit is contained in:
Jarrett Spiker
2022-10-05 15:57:09 -04:00
parent c0964438d6
commit 060255a9d5
22 changed files with 219 additions and 35 deletions

View File

@@ -165,7 +165,7 @@ func (c *WorkspaceDeleteCommand) Run(args []string) int {
// be delegated from the Backend to the State itself.
stateLocker.Unlock()
err = b.DeleteWorkspace(workspace)
err = b.DeleteWorkspace(workspace, force)
if err != nil {
c.Ui.Error(err.Error())
return 1