Skip to content

Commit

Permalink
patch - fixing bug tco_policy_traces tags (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrNovo authored Oct 11, 2023
1 parent 93a31e6 commit 6d72ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coralogix/resource_coralogix_tco_policy_traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func flattenTCOPolicyTraces(ctx context.Context, policy *tcopolicies.Policy) TCO

func flattenTCOPolicyTags(ctx context.Context, tags []*tcopolicies.TagRule) types.Map {
if len(tags) == 0 {
return types.MapNull(types.StringType)
return types.MapNull(types.ObjectType{AttrTypes: tcoRuleModelAttr()})
}

elements := make(map[string]attr.Value)
Expand Down
2 changes: 1 addition & 1 deletion examples/tco_policy_traces/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
coralogix = {
version = "~> 1.7"
version = "~> 1.8"
source = "coralogix/coralogix"
}
}
Expand Down

0 comments on commit 6d72ab3

Please sign in to comment.