Skip to content

Commit

Permalink
Use default send after for empty string (GoogleCloudPlatform#7683)
Browse files Browse the repository at this point in the history
  • Loading branch information
trodge authored and hao-nan-li committed Apr 11, 2023
1 parent c2c5d86 commit 4895d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmv1/third_party/terraform/utils/config.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func ExpandProviderBatchingConfig(v interface{}) (*batchingConfig, error) {
}

cfgV := ls[0].(map[string]interface{})
if sendAfterV, ok := cfgV["send_after"]; ok {
if sendAfterV, ok := cfgV["send_after"]; ok && sendAfterV != "" {
SendAfter, err := time.ParseDuration(sendAfterV.(string))
if err != nil {
return nil, fmt.Errorf("unable to parse duration from 'send_after' value %q", sendAfterV)
Expand Down

0 comments on commit 4895d52

Please sign in to comment.