Skip to content

Commit 93d0362

Browse files
committed
fix: Fix output of async network creation
1 parent 9c72ce7 commit 93d0362

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/cmd/beta/network/create/create.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ func outputResult(p *print.Printer, model *inputModel, projectLabel string, netw
253253

254254
return nil
255255
default:
256-
p.Outputf("Created network for project %q.\nNetwork ID: %s\n", projectLabel, *network.NetworkId)
256+
operationState := "Created"
257+
if model.Async {
258+
operationState = "Triggered creation of"
259+
}
260+
p.Outputf("%s network for project %q.\nNetwork ID: %s\n", operationState, projectLabel, *network.NetworkId)
257261
return nil
258262
}
259263
}

0 commit comments

Comments
 (0)