mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-09 23:54:17 -06:00
provider/aws: Prevent aws_dms_replication_task panic (#12539)
Fixes: #12506 When a replication_task cdc_start_time was specified as an int, it was causing a panic as the conversion to a Unix timestampe was expecting a string ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAwsDmsReplicationTaskBasic' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/03/08 22:55:29 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAwsDmsReplicationTaskBasic -timeout 120m === RUN TestAccAwsDmsReplicationTaskBasic --- PASS: TestAccAwsDmsReplicationTaskBasic (1089.77s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 1089.802s ```
This commit is contained in:
parent
7f87abae91
commit
10f080f315
@ -27,7 +27,7 @@ func resourceAwsDmsReplicationTask() *schema.Resource {
|
||||
|
||||
Schema: map[string]*schema.Schema{
|
||||
"cdc_start_time": {
|
||||
Type: schema.TypeInt,
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
// Requires a Unix timestamp in seconds. Example 1484346880
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user