From f379a41684f86b9fdc8ef582ce190ec068630d7e Mon Sep 17 00:00:00 2001 From: Marco Dinis Date: Tue, 22 Oct 2024 09:20:29 +0100 Subject: [PATCH] rename arn to roleArn --- lib/web/integrations_awsoidc.go | 2 +- lib/web/ui/integration.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/web/integrations_awsoidc.go b/lib/web/integrations_awsoidc.go index 647bc5b10c883..21f8364c481a9 100644 --- a/lib/web/integrations_awsoidc.go +++ b/lib/web/integrations_awsoidc.go @@ -1456,7 +1456,7 @@ func (h *Handler) awsOIDCPing(w http.ResponseWriter, r *http.Request, p httprout pingResp, err := clt.IntegrationAWSOIDCClient().Ping(ctx, &integrationv1.PingRequest{ Integration: integrationName, - Arn: req.ARN, + Arn: req.RoleARN, }) if err != nil { return nil, trace.Wrap(err) diff --git a/lib/web/ui/integration.go b/lib/web/ui/integration.go index 57a5ecb606c06..35ce4599af963 100644 --- a/lib/web/ui/integration.go +++ b/lib/web/ui/integration.go @@ -519,8 +519,8 @@ type AWSOIDCPingResponse struct { // AWSOIDCPingRequest contains ping request fields. type AWSOIDCPingRequest struct { - // ARN is optional, and used for cases such as + // RoleARN is optional, and used for cases such as // pinging to check validity before upserting an // AWS OIDC integration. - ARN string `json:"arn,omitempty"` + RoleARN string `json:"roleArn,omitempty"` }