From 66b987c172c28275e5d7e7275312d801aaa5069c Mon Sep 17 00:00:00 2001 From: Peter Dannemann Date: Mon, 12 Feb 2024 13:29:22 -0500 Subject: [PATCH] fix type --- cmd/topicctl/subcmd/delete.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/topicctl/subcmd/delete.go b/cmd/topicctl/subcmd/delete.go index 1d4ef65a..27fdbd09 100644 --- a/cmd/topicctl/subcmd/delete.go +++ b/cmd/topicctl/subcmd/delete.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/segmentio/kafka-go" "github.com/segmentio/topicctl/pkg/acl" + "github.com/segmentio/topicctl/pkg/admin" "github.com/segmentio/topicctl/pkg/cli" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -54,7 +55,7 @@ func deletePreRun(cmd *cobra.Command, args []string) error { var deleteACLsConfig = aclsCmdConfig{ // This was added in a later version of Kafka, so we provide a default // value to avoid breaking existing users by making this required. - ResourcePatternType: kafka.PatternTypeAny, + resourcePatternType: admin.PatternType(kafka.PatternTypeAny), } func deleteACLCmd() *cobra.Command {