Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_elastictranscoder_present: Prevent empty configuration b…
…lock panics (#14092) Reference: #14087 Previously: ``` === CONT TestAccAWSElasticTranscoderPreset_AudioCodecOptions_empty panic: interface conversion: interface {} is nil, not map[string]interface {} goroutine 378 [running]: github.com/terraform-providers/terraform-provider-aws/aws.expandETAudioCodecOptions(0xc000fb9880, 0xc0028af590) /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go:434 +0x458 github.com/terraform-providers/terraform-provider-aws/aws.expandETAudioParams(0xc000fb9880, 0xc0027d5708) /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go:423 +0x2a0 github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsElasticTranscoderPresetCreate(0xc000fb9880, 0x66543e0, 0xc002660000, 0x2, 0xbbdb620) /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_elastic_transcoder_preset.go:326 +0x6c ``` Output from acceptance testing: ``` --- PASS: TestAccAWSElasticTranscoderPreset_disappears (13.09s) --- PASS: TestAccAWSElasticTranscoderPreset_AudioCodecOptions_empty (18.51s) --- PASS: TestAccAWSElasticTranscoderPreset_Description (18.51s) --- PASS: TestAccAWSElasticTranscoderPreset_basic (18.98s) --- PASS: TestAccAWSElasticTranscoderPreset_Full (34.69s) ```
- Loading branch information