Skip to content

Commit

Permalink
aws_medialive_channel: use TypeSet for tracks attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed Aug 21, 2023
1 parent 76e7a00 commit bad2d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/medialive/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ func expandInputAttachmentInputSettingsAudioSelectorsSelectorSettingsAudioTrackS
m := tfList[0].(map[string]interface{})

var out types.AudioTrackSelection
if v, ok := m["tracks"].([]interface{}); ok && len(v) > 0 {
out.Tracks = expandInputAttachmentInputSettingsAudioSelectorsSelectorSettingsAudioTrackSelectionTracks(v)
if v, ok := m["tracks"].(*schema.Set); ok && v.Len() > 0 {
out.Tracks = expandInputAttachmentInputSettingsAudioSelectorsSelectorSettingsAudioTrackSelectionTracks(v.List())
}
if v, ok := m["dolby_e_decode"].([]interface{}); ok && len(v) > 0 {
out.DolbyEDecode = expandInputAttachmentInputSettingsAudioSelectorsSelectorSettingsAudioTrackSelectionDolbyEDecode(v)
Expand Down

0 comments on commit bad2d54

Please sign in to comment.