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 c13ce53 commit 7d8f2d0Copy full SHA for 7d8f2d0
cli/create.go
@@ -109,6 +109,9 @@ func (r *RootCmd) create() *serpent.Command {
109
110
templateNames := make([]string, 0, len(templates))
111
templateByName := make(map[string]codersdk.Template, len(templates))
112
+
113
+ // If more than 1 organization exists in the list of templates,
114
+ // then include the organization name in the select options.
115
uniqueOrganizations := make(map[uuid.UUID]bool)
116
for _, template := range templates {
117
uniqueOrganizations[template.OrganizationID] = true
0 commit comments