Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Duchesne committed Oct 5, 2018
1 parent c8a6ce1 commit 1358b7c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions aws/resource_aws_s3_bucket_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"os"
"strings"

"github.com/hashicorp/terraform/helper/customdiff"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/mitchellh/go-homedir"
Expand All @@ -26,14 +27,15 @@ func resourceAwsS3BucketObject() *schema.Resource {
Read: resourceAwsS3BucketObjectRead,
Update: resourceAwsS3BucketObjectPut,
Delete: resourceAwsS3BucketObjectDelete,
CustomizeDiff: func(diff *schema.ResourceDiff, v interface{}) error {
if diff.Get("etag_changed").(bool) {
diff.SetNewComputed("etag")
}
return nil
},

CustomizeDiff: updateComputedAttributes,
CustomizeDiff: customdiff.Sequence(
func(diff *schema.ResourceDiff, v interface{}) error {
if diff.Get("etag_changed").(bool) {
diff.SetNewComputed("etag")
}
return nil
},
updateComputedAttributes,
),

Schema: map[string]*schema.Schema{
"bucket": {
Expand Down

0 comments on commit 1358b7c

Please sign in to comment.