handle error of trying to remove a user from a group when their name has already changed

This commit is contained in:
Patrick Gray 2015-09-13 03:37:45 -04:00
parent 5576ec6b10
commit 0ab12a54f1
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ func removeUsersFromGroup(conn *iam.IAM, users []*string, group string) error {
})
if err != nil {
if iamerr, ok := err.(awserr.Error); ok && iamerr.Code() == "NoSuchEntity" {
return nil
}
return err
}
}