Skip to content

Commit

Permalink
provider/aws: SQS use raw policy string if compact fails (#6724)
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed May 24, 2016
1 parent a5d8ddc commit 171c1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_sqs_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func resourceAwsSqsQueue() *schema.Resource {
jsonb := []byte(s)
buffer := new(bytes.Buffer)
if err := json.Compact(buffer, jsonb); err != nil {
log.Printf("[WARN] Error compacting JSON for Policy in SNS Queue")
return ""
log.Printf("[WARN] Error compacting JSON for Policy in SNS Queue, using raw string: %s", err)
return s
}
return buffer.String()
},
Expand Down

0 comments on commit 171c1e3

Please sign in to comment.