Merge pull request #3663 from semarj/master

get profile name even if profile path exists
This commit is contained in:
Clint 2015-12-18 10:55:23 -06:00
commit e273fe6cfc
1 changed files with 2 additions and 1 deletions

View File

@ -1085,5 +1085,6 @@ func iamInstanceProfileArnToName(ip *ec2.IamInstanceProfile) string {
if ip == nil || ip.Arn == nil {
return ""
}
return strings.Split(*ip.Arn, "/")[1]
parts := strings.Split(*ip.Arn, "/")
return parts[len(parts)-1]
}