Skip to content

Commit

Permalink
chore: pkg imported more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and danehlim committed Jul 18, 2023
1 parent 4e85913 commit 107e5a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ecs-agent/tmds/handlers/v1/credentials_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 107e5a4

Please sign in to comment.