will not swallow error on aws iam group update if we get NoSuchEntity error

This commit is contained in:
Patrick Gray 2015-10-04 21:28:28 -04:00
parent f5267dfa44
commit 9ab5596458
1 changed files with 0 additions and 4 deletions

View File

@ -105,10 +105,6 @@ func resourceAwsIamGroupUpdate(d *schema.ResourceData, meta interface{}) error {
}
_, err := iamconn.UpdateGroup(request)
if err != nil {
if iamerr, ok := err.(awserr.Error); ok && iamerr.Code() == "NoSuchEntity" {
d.SetId("")
return nil
}
return fmt.Errorf("Error updating IAM Group %s: %s", d.Id(), err)
}
return resourceAwsIamGroupRead(d, meta)