Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hashicorp/terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Mar 27, 2017
2 parents 428d392 + 3adf6dd commit a516390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ BUG FIXES:
* provider/aws: aws_network_acl_rule treat all and -1 for protocol the same [GH-13049]
* provider/aws: Only allow 1 value in alb_listener_rule condition [GH-13051]
* provider/aws: Correct handling of network ACL default IPv6 ingress/egress rules [GH-12835]
* provider/aws: aws_ses_receipt_rule: fix off-by-one errors [GH-12961]
* provider/fastly: Fix issue importing Fastly Services with Backends [GH-12538]
* provider/google: turn compute_instance_group.instances into a set [GH-12790]
* provider/mysql: recreate user/grant if user/grant got deleted manually [GH-12791]
Expand Down
14 changes: 7 additions & 7 deletions builtin/providers/aws/resource_aws_ses_receipt_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
addHeaderAction := map[string]interface{}{
"header_name": *element.AddHeaderAction.HeaderName,
"header_value": *element.AddHeaderAction.HeaderValue,
"position": i,
"position": i + 1,
}
addHeaderActionList = append(addHeaderActionList, addHeaderAction)
}
Expand All @@ -453,7 +453,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
"message": *element.BounceAction.Message,
"sender": *element.BounceAction.Sender,
"smtp_reply_code": *element.BounceAction.SmtpReplyCode,
"position": i,
"position": i + 1,
}

if element.BounceAction.StatusCode != nil {
Expand All @@ -470,7 +470,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
if element.LambdaAction != nil {
lambdaAction := map[string]interface{}{
"function_arn": *element.LambdaAction.FunctionArn,
"position": i,
"position": i + 1,
}

if element.LambdaAction.InvocationType != nil {
Expand All @@ -487,7 +487,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
if element.S3Action != nil {
s3Action := map[string]interface{}{
"bucket_name": *element.S3Action.BucketName,
"position": i,
"position": i + 1,
}

if element.S3Action.KmsKeyArn != nil {
Expand All @@ -508,7 +508,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
if element.SNSAction != nil {
snsAction := map[string]interface{}{
"topic_arn": *element.SNSAction.TopicArn,
"position": i,
"position": i + 1,
}

snsActionList = append(snsActionList, snsAction)
Expand All @@ -517,7 +517,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
if element.StopAction != nil {
stopAction := map[string]interface{}{
"scope": *element.StopAction.Scope,
"position": i,
"position": i + 1,
}

if element.StopAction.TopicArn != nil {
Expand All @@ -530,7 +530,7 @@ func resourceAwsSesReceiptRuleRead(d *schema.ResourceData, meta interface{}) err
if element.WorkmailAction != nil {
workmailAction := map[string]interface{}{
"organization_arn": *element.WorkmailAction.OrganizationArn,
"position": i,
"position": i + 1,
}

if element.WorkmailAction.TopicArn != nil {
Expand Down

0 comments on commit a516390

Please sign in to comment.