Skip to content

Commit 5645140

Browse files
authored
chore: treat security_token specially for empty / null (#52)
It seems to be failing on our e2e test in #50
1 parent ec91722 commit 5645140

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/provider/stream_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ func updateDestinationAttributesFromAPI(destAttrs map[string]interface{}) (types
12211221
switch val := v.(type) {
12221222
case string:
12231223
// Treat empty strings as null for optional fields that are not relevant for this destination type
1224-
if val == "" && (k == "access_key" || k == "secret_key" || k == "bucket" || k == "region" || k == "file_compression" || k == "sslmode") {
1224+
if val == "" && (k == "access_key" || k == "secret_key" || k == "bucket" || k == "region" || k == "file_compression" || k == "sslmode" || k == "security_token") {
12251225
attrs[k] = types.StringNull()
12261226
} else {
12271227
attrs[k] = types.StringValue(val)

0 commit comments

Comments
 (0)