Skip to content

Commit

Permalink
Fix can not detect the change configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmkznr committed Mar 12, 2016
1 parent 69bf108 commit e71b784
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions builtin/providers/aws/resource_aws_s3_bucket_notification.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package aws

import (
"bytes"
"fmt"
"log"
"strings"

"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema"

"github.com/aws/aws-sdk-go/aws"
Expand Down Expand Up @@ -57,13 +55,6 @@ func resourceAwsS3BucketNotification() *schema.Resource {
},
},
},
Set: func(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})
buf.WriteString(fmt.Sprintf("%t-", m["filter_prefix"].(string)))
buf.WriteString(fmt.Sprintf("%t-", m["filter_suffix"].(string)))
return hashcode.String(buf.String())
},
},

"queue": &schema.Schema{
Expand Down Expand Up @@ -95,13 +86,6 @@ func resourceAwsS3BucketNotification() *schema.Resource {
},
},
},
Set: func(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})
buf.WriteString(fmt.Sprintf("%t-", m["filter_prefix"].(string)))
buf.WriteString(fmt.Sprintf("%t-", m["filter_suffix"].(string)))
return hashcode.String(buf.String())
},
},

"lambda_function": &schema.Schema{
Expand Down Expand Up @@ -133,13 +117,6 @@ func resourceAwsS3BucketNotification() *schema.Resource {
},
},
},
Set: func(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})
buf.WriteString(fmt.Sprintf("%t-", m["filter_prefix"].(string)))
buf.WriteString(fmt.Sprintf("%t-", m["filter_suffix"].(string)))
return hashcode.String(buf.String())
},
},
},
}
Expand Down

0 comments on commit e71b784

Please sign in to comment.