Skip to content

Commit 489e648

Browse files
committed
fix comment
1 parent 7b1e7f6 commit 489e648

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

codersdk/provisionerdaemons.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ func (c *Client) ServeProvisionerDaemon(ctx context.Context, req ServeProvisione
274274
}
275275

276276
type ProvisionerKey struct {
277-
ID uuid.UUID `json:"id" table:"-" format:"uuid"`
278-
CreatedAt time.Time `json:"created_at" table:"created_at" format:"date-time"`
279-
OrganizationID uuid.UUID `json:"organization" table:"organization_id" format:"uuid"`
280-
Name string `json:"name" table:"name,default_sort"`
277+
ID uuid.UUID `json:"id" table:"-" format:"uuid"`
278+
CreatedAt time.Time `json:"created_at" table:"created_at" format:"date-time"`
279+
OrganizationID uuid.UUID `json:"organization" table:"organization_id" format:"uuid"`
280+
Name string `json:"name" table:"name,default_sort"`
281+
Tags map[string]string `json:"tags" table:"tags"`
281282
// HashedSecret - never include the access token in the API response
282-
Tags map[string]string `json:"tags" table:"tags"`
283283
}
284284

285285
type CreateProvisionerKeyRequest struct {

enterprise/coderd/provisionerkeys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ func convertProvisionerKeys(dbKeys []database.ProvisionerKey) []codersdk.Provisi
142142
CreatedAt: dbKey.CreatedAt,
143143
OrganizationID: dbKey.OrganizationID,
144144
Name: dbKey.Name,
145+
Tags: dbKey.Tags,
145146
// HashedSecret - never include the access token in the API response
146-
Tags: dbKey.Tags,
147147
})
148148
}
149149
return keys

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy