Skip to content

Commit

Permalink
resource/aws_cloudfront_distribution: Ensure we are catching d.Set("a…
Browse files Browse the repository at this point in the history
…ctive_trusted_signers", ...) error

Output from acceptance testing:

```
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners
```
  • Loading branch information
bflad committed Sep 5, 2019
1 parent cad90e6 commit 1c2b6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_cloudfront_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ func resourceAwsCloudFrontDistributionRead(d *schema.ResourceData, meta interfac
}
// Update other attributes outside of DistributionConfig

if d.Set("active_trusted_signers", flattenCloudfrontActiveTrustedSigners(resp.Distribution.ActiveTrustedSigners)); err != nil {
if err := d.Set("active_trusted_signers", flattenCloudfrontActiveTrustedSigners(resp.Distribution.ActiveTrustedSigners)); err != nil {
return fmt.Errorf("error setting active_trusted_signers: %s", err)
}

Expand Down

0 comments on commit 1c2b6f4

Please sign in to comment.