From a77e8284654ffa0b7718208aa745a89961acaf3a Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Wed, 11 Apr 2018 12:45:08 -0400 Subject: [PATCH] resource/aws_iam_user: Add missing return resource.NonRetryableError(err) from DeleteLoginProfile --- aws/resource_aws_iam_user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/resource_aws_iam_user.go b/aws/resource_aws_iam_user.go index 74bb711f7ca..b7930f1d0e1 100644 --- a/aws/resource_aws_iam_user.go +++ b/aws/resource_aws_iam_user.go @@ -232,6 +232,7 @@ func resourceAwsIamUserDelete(d *schema.ResourceData, meta interface{}) error { if isAWSErr(err, iam.ErrCodeEntityTemporarilyUnmodifiableException, "") { return resource.RetryableError(err) } + return resource.NonRetryableError(err) } return nil })