@ -88,14 +88,14 @@ func testAccCheckAWSPolicyAttachmentAttributes(users []string, roles []string, g
}
for_,r:=rangeroles{
for_,pr:=rangeout.PolicyRoles{
ifr==*pu.RoleName{
ifr==*pr.RoleName{
rc--
}
}
}
for_,g:=rangeusers{
for_,pg:=rangeout.PolicyGroups{
ifg==*pu.GroupName{
ifg==*pg.GroupName{
gc--
}
}
@ -103,6 +103,7 @@ func testAccCheckAWSPolicyAttachmentAttributes(users []string, roles []string, g
ifuc!=0||rc!=0||gc!=0{
returnfmt.Errorf("Error: Number of attached users, roles, or groups was incorrect:\n expected %d users and found %d\nexpected %d roles and found %d\nexpected %d groups and found %d",len(users),(len(users)-uc),len(roles),(len(roles)-rc),len(groups),(len(groups)-gc))