Skip to content

Commit

Permalink
fix: conditions to read log configuration
Browse files Browse the repository at this point in the history
OTT-6159
  • Loading branch information
thatsddr committed Jul 29, 2024
1 parent 9d7c18d commit 7223c9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion awsmt/helpers_playback_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ func (m *putPlaybackConfigurationModelbuilder) addOptionalFieldsToModel() {
}

if m.output.LogConfiguration != nil {
if !m.isResource && m.model.LogConfigurationPercentEnabled == types.Int64Value(0) {
if m.isResource && int(m.model.LogConfigurationPercentEnabled.ValueInt64()) > 0 {
m.model.LogConfigurationPercentEnabled = types.Int64Value(int64(m.output.LogConfiguration.PercentEnabled))
} else if !m.isResource {
m.model.LogConfigurationPercentEnabled = types.Int64Value(int64(m.output.LogConfiguration.PercentEnabled))
}
}
Expand Down

0 comments on commit 7223c9d

Please sign in to comment.