We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345fef9 commit 165b8a4Copy full SHA for 165b8a4
internal/command/workspace_new.go
@@ -104,9 +104,11 @@ func (c *WorkspaceNewCommand) Run(args []string) int {
104
105
// Create the new workspace
106
//
107
- // In remote-state backends, obtaining a state manager
108
- // creates an empty state file for the new workspace as a
109
- // side-effect.
+ // In local, remote and remote-state backends obtaining a state manager
+ // creates an empty state file for the new workspace as a side-effect.
+ //
110
+ // The cloud backend also has logic in StateMgr for creating projects and
111
+ // workspaces if they don't already exist.
112
sMgr, sDiags := b.StateMgr(workspace)
113
if sDiags.HasErrors() {
114
c.Ui.Error(sDiags.Err().Error())
0 commit comments