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 c893cc2 commit d371f7aCopy full SHA for d371f7a
internal/command/workspace_new.go
@@ -98,9 +98,11 @@ func (c *WorkspaceNewCommand) Run(args []string) int {
98
99
// Create the new workspace
100
//
101
- // In remote-state backends, obtaining a state manager
102
- // creates an empty state file for the new workspace as a
103
- // 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.
+ //
104
+ // The cloud backend also has logic in StateMgr for creating projects and
105
+ // workspaces if they don't already exist.
106
sMgr, sDiags := b.StateMgr(workspace)
107
if sDiags.HasErrors() {
108
c.Ui.Error(sDiags.Err().Error())
0 commit comments