Skip to content

Commit 11c3db7

Browse files
committed
fmt
1 parent 79bc366 commit 11c3db7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

coderd/templateversions.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,10 +1597,8 @@ func (api *API) postTemplateVersionsByOrganization(rw http.ResponseWriter, r *ht
15971597
}
15981598

15991599
// Ensure the "owner" tag is properly applied in addition to request tags and coder_workspace_tags.
1600-
// Tag order precedence:
1601-
// 1) Tags parsed from coder_workspace_tags data source in template file
1602-
// 2) User-specified tags in the request
1603-
// 2 may clobber 1.
1600+
// User-specified tags in the request will take precedence over tags parsed from `coder_workspace_tags`
1601+
// data sources defined in the template file.
16041602
tags := provisionersdk.MutateTags(apiKey.UserID, parsedTags, req.ProvisionerTags)
16051603

16061604
var templateVersion database.TemplateVersion

coderd/templateversions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ func TestPostTemplateVersionsByOrganization(t *testing.T) {
430430
}`,
431431
},
432432
reqTags: map[string]string{"a": "b"},
433-
//wantTags: map[string]string{"owner": "", "scope": "organization", "a": "b"},
433+
// wantTags: map[string]string{"owner": "", "scope": "organization", "a": "b"},
434434
expectError: `provisioner tag "a" evaluated to an empty value`,
435435
},
436436
{

0 commit comments

Comments
 (0)