Skip to content

Commit

Permalink
fix: pointer error when bootstrap host is empty (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enda authored Jan 21, 2021
1 parent 5aa1386 commit 7281b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sdk/kafka/topics/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func brokerConnect(opts *Options) (broker *kafka.Conn, ctl *kafka.Conn, err erro
return nil, nil, fmt.Errorf("Could not get Kafka instance: %w", apiErr)
}

if *kafkaInstance.BootstrapServerHost == "" {
if kafkaInstance.GetBootstrapServerHost() == "" {
return nil, nil, fmt.Errorf("Kafka instance is missing a Bootstrap Server Host")
}

Expand Down

0 comments on commit 7281b8b

Please sign in to comment.