Skip to content

Commit

Permalink
refactor: use structs for playback configuration helper functions
Browse files Browse the repository at this point in the history
OTT-6255
  • Loading branch information
thatsddr committed Jul 19, 2024
1 parent 8b180fd commit ecbae44
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 168 deletions.
4 changes: 2 additions & 2 deletions awsmt/data_source_playback_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (d *dataSourcePlaybackConfiguration) Read(ctx context.Context, req datasour
return
}

data = readPlaybackConfig(data, mediatailor.PutPlaybackConfigurationOutput(*playbackConfiguration))
m := putPlaybackConfigurationModelbuilder{model: &data, output: mediatailor.PutPlaybackConfigurationOutput(*playbackConfiguration)}

resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
resp.Diagnostics.Append(resp.State.Set(ctx, m.getModel())...)
}
Loading

0 comments on commit ecbae44

Please sign in to comment.