File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ type ec2RoleCredRespBody struct {
102
102
Message string
103
103
}
104
104
105
- const iamSecurityCredsPath = "/iam/security-credentials"
105
+ const iamSecurityCredsPath = "/iam/security-credentials/ "
106
106
107
107
// requestCredList requests a list of credentials from the EC2 service.
108
108
// If there are no credentials, or there is an error making or receiving the request
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const credsFailRespTmpl = `{
33
33
34
34
func initTestServer (expireOn string , failAssume bool ) * httptest.Server {
35
35
server := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
36
- if r .URL .Path == "/latest/meta-data/iam/security-credentials" {
36
+ if r .URL .Path == "/latest/meta-data/iam/security-credentials/ " {
37
37
fmt .Fprintln (w , "RoleName" )
38
38
} else if r .URL .Path == "/latest/meta-data/iam/security-credentials/RoleName" {
39
39
if failAssume {
You can’t perform that action at this time.
0 commit comments