Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/aws_iot_thing_group: fix crash with empty
attribute_payload
block
Setting the `attribute_payload` argument to an empty block resulted the in the associated expander attempting to assert the lists single nil item into a map. This change adds a check for nil items to prevent this. ```console % make testacc PKG=iot TESTS=TestAccIoTThingGroup_ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.22.6 test ./internal/service/iot/... -v -count 1 -parallel 20 -run='TestAccIoTThingGroup_' -timeout 360m --- PASS: TestAccIoTThingGroup_disappears (12.93s) --- PASS: TestAccIoTThingGroup_basic (15.24s) --- PASS: TestAccIoTThingGroup_parentGroup (19.73s) --- PASS: TestAccIoTThingGroup_properties (22.78s) --- PASS: TestAccIoTThingGroup_tags (30.27s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/iot 36.178s ```
- Loading branch information