Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed video_description from typeSet to typeList #30064

Merged
merged 5 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changelog/30064.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:bug
resource/aws_medialive_channel: Changed typeSet to typeList on video_description, to get more precise actions from
plan output
jonasdkhansen marked this conversation as resolved.
Show resolved Hide resolved
```
Original file line number Diff line number Diff line change
Expand Up @@ -1315,9 +1315,10 @@ func channelEncoderSettingsSchema() *schema.Schema {
},
},
"video_descriptions": {
Type: schema.TypeSet,
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
jonasdkhansen marked this conversation as resolved.
Show resolved Hide resolved
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Expand Down Expand Up @@ -2362,8 +2363,8 @@ func expandChannelEncoderSettings(tfList []interface{}) *types.EncoderSettings {
if v, ok := m["timecode_config"].([]interface{}); ok && len(v) > 0 {
settings.TimecodeConfig = expandChannelEncoderSettingsTimecodeConfig(v)
}
if v, ok := m["video_descriptions"].(*schema.Set); ok && v.Len() > 0 {
settings.VideoDescriptions = expandChannelEncoderSettingsVideoDescriptions(v.List())
if v, ok := m["video_descriptions"].([]interface{}); ok && len(v) > 0 {
settings.VideoDescriptions = expandChannelEncoderSettingsVideoDescriptions(v)
}
if v, ok := m["avail_blanking"].([]interface{}); ok && len(v) > 0 {
settings.AvailBlanking = expandChannelEncoderSettingsAvailBlanking(v)
Expand Down