From 7af3f17c73c98e11e8c971d69761a64ef59badd5 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 19 Aug 2022 20:50:02 +0200 Subject: [PATCH] fix: aclRead does not read PatternType of acl already in Kafka --- kafka/resource_kafka_acl.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kafka/resource_kafka_acl.go b/kafka/resource_kafka_acl.go index a025a911..96cf5a05 100644 --- a/kafka/resource_kafka_acl.go +++ b/kafka/resource_kafka_acl.go @@ -124,8 +124,9 @@ func aclRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag PermissionType: ACLPermissionTypeToString(acl.PermissionType), }, Resource: Resource{ - Type: ACLResourceToString(foundACLs.ResourceType), - Name: foundACLs.ResourceName, + Type: ACLResourceToString(foundACLs.ResourceType), + Name: foundACLs.ResourceName, + PatternTypeFilter: foundACLs.ResourcePatternType.String(), }, }