From b67b1e5299fc35762d235835824806985287d943 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 18 Jul 2023 12:15:21 +0800 Subject: [PATCH] chore: pkg imported more than once --- .../ecs-agent/tmds/handlers/v1/credentials_handler.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v1/credentials_handler.go b/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v1/credentials_handler.go index 90af17509a9..47c5dcd2b24 100644 --- a/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v1/credentials_handler.go +++ b/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v1/credentials_handler.go @@ -20,7 +20,6 @@ import ( "net/http" "github.com/aws/amazon-ecs-agent/ecs-agent/credentials" - "github.com/aws/amazon-ecs-agent/ecs-agent/logger/audit" auditinterface "github.com/aws/amazon-ecs-agent/ecs-agent/logger/audit" "github.com/aws/amazon-ecs-agent/ecs-agent/logger/audit/request" handlersutils "github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/utils" @@ -87,12 +86,12 @@ func CredentialsHandlerImpl( return } writeCredentialsRequestResponse(w, r, errorMessage.HTTPErrorCode, - audit.GetCredentialsEventTypeFromRoleType(roleType), arn, auditLogger, errResponseJSON) + auditinterface.GetCredentialsEventTypeFromRoleType(roleType), arn, auditLogger, errResponseJSON) return } writeCredentialsRequestResponse(w, r, http.StatusOK, - audit.GetCredentialsEventTypeFromRoleType(roleType), arn, auditLogger, responseJSON) + auditinterface.GetCredentialsEventTypeFromRoleType(roleType), arn, auditLogger, responseJSON) } // processCredentialsRequest returns the response json containing credentials for the