Skip to content

Commit 4ce302e

Browse files
committed
Fix: Make sure diags from attempting to create the default workspace are returned
1 parent ec5ae57 commit 4ce302e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/command/meta_backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ func (m *Meta) stateStore_C_s(c *configs.StateStore, cHash int, backendSMgr *cli
16771677
case ws == backend.DefaultStateName:
16781678
// Users control if the default workspace is created through the -create-default-workspace flag (defaults to true)
16791679
if opts.CreateDefaultWorkspace {
1680-
m.createDefaultWorkspace(c, b)
1680+
diags = diags.Append(m.createDefaultWorkspace(c, b))
16811681
} else {
16821682
diags = diags.Append(&hcl.Diagnostic{
16831683
Severity: hcl.DiagWarning,

0 commit comments

Comments
 (0)