Skip to content

Commit 00d4326

Browse files
committed
Fix workspace agent request name
1 parent 50f76b9 commit 00d4326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/workspaceagent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/mitchellh/mapstructure"
1414
)
1515

16-
type AuthenticateWorkspaceAgentUsingGoogleInstanceIdentity struct {
16+
type GoogleInstanceIdentityToken struct {
1717
JSONWebToken string `json:"json_web_token" validate:"required"`
1818
}
1919

@@ -27,7 +27,7 @@ type WorkspaceAgentAuthenticateResponse struct {
2727
// https://cloud.google.com/compute/docs/instances/verifying-instance-identity
2828
// Using this, we can exchange a signed instance payload for an agent token.
2929
func (api *api) postAuthenticateWorkspaceAgentUsingGoogleInstanceIdentity(rw http.ResponseWriter, r *http.Request) {
30-
var req AuthenticateWorkspaceAgentUsingGoogleInstanceIdentity
30+
var req GoogleInstanceIdentityToken
3131
if !httpapi.Read(rw, r, &req) {
3232
return
3333
}

0 commit comments

Comments
 (0)