Skip to content

Commit

Permalink
Add SourceDynamicDefaultBroker as a type to refuse to retrieve topic …
Browse files Browse the repository at this point in the history
…settings
  • Loading branch information
joker1007 authored and Mongey committed Apr 22, 2024
1 parent 40dacea commit 83068a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kafka/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func isDefault(tc *sarama.ConfigEntry, version int) bool {
if version == 0 {
return tc.Default
}
return tc.Source == sarama.SourceDefault || tc.Source == sarama.SourceStaticBroker
return tc.Source == sarama.SourceDefault ||
tc.Source == sarama.SourceStaticBroker ||
tc.Source == sarama.SourceDynamicDefaultBroker
}

func metaToTopic(d *schema.ResourceData, meta interface{}) Topic {
Expand Down

0 comments on commit 83068a6

Please sign in to comment.