Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit911a47d

Browse files
committed
linter
1 parentc67d322 commit911a47d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎codersdk/provisionerdaemons.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ func (c *Client) ListProvisionerKeys(ctx context.Context, organizationID uuid.UU
368368
returnresp,json.NewDecoder(res.Body).Decode(&resp)
369369
}
370370

371-
//FetchProvisionerTagsTagsByKey returns the provisioner tags associated with the provisioner key.
372-
func (c*Client)FetchProvisionerTagsTagsByKey(ctx context.Context,organizationID uuid.UUID,provisionerKeystring) (ProvisionerKeyTags,error) {
371+
//FetchProvisionerTagsByKey returns the provisioner tags associated with the provisioner key.
372+
func (c*Client)FetchProvisionerTagsByKey(ctx context.Context,organizationID uuid.UUID,provisionerKeystring) (ProvisionerKeyTags,error) {
373373
res,err:=c.Request(ctx,http.MethodGet,
374374
fmt.Sprintf("/api/v2/organizations/%s/provisionerkeys/%s/tags",organizationID.String(),provisionerKey),
375375
nil,

‎enterprise/coderd/provisionerkeys_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ func TestProvisionerKeyTags(t *testing.T) {
160160
})
161161
require.NoError(t,err)
162162

163-
tags,err:=client.FetchProvisionerTagsTagsByKey(ctx,owner.OrganizationID,"key")
163+
tags,err:=client.FetchProvisionerTagsByKey(ctx,owner.OrganizationID,"key")
164164
require.NoError(t,err)
165165
require.Equal(t,tags, codersdk.ProvisionerKeyTags{"key1":"value1","key2":"value2"})
166166

167-
_,err=client.FetchProvisionerTagsTagsByKey(ctx,owner.OrganizationID,"invalid_key")
167+
_,err=client.FetchProvisionerTagsByKey(ctx,owner.OrganizationID,"invalid_key")
168168
require.ErrorContains(t,err,"Resource not found")
169169
})
170170
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp