Skip to content

Commit 61c9989

Browse files
committed
fix: changing a request attribute data_type lead to an error
The data_type of `dynatrace_request_attribute` is immutable once created. The API rejected the request if the type changed. Therefore, adding a forceNew here, so that the resource is re-created if the data_type changes
1 parent 75e48fb commit 61c9989

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dynatrace/api/v1/config/requestattributes/settings/request_attribute.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func (me *RequestAttribute) Schema() map[string]*schema.Schema {
7272
Type: schema.TypeString,
7373
Description: "The data type of the request attribute",
7474
Required: true,
75+
ForceNew: true,
7576
},
7677
"normalization": {
7778
Type: schema.TypeString,

0 commit comments

Comments
 (0)