Skip to content

Commit

Permalink
Fix quarkusio#18811 - Only add the consumer group id if the Kafka con…
Browse files Browse the repository at this point in the history
…fig is not empty

(cherry picked from commit eef7581)
  • Loading branch information
cescoffier authored and gsmet committed Jul 21, 2021
1 parent 07e02f2 commit 17b8ce6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Map<String, Object> createKafkaRuntimeConfig(Config config, ApplicationCo
result.put(effectivePropertyName, value);
}

if (!result.containsKey(GROUP_ID) && app.name.isPresent()) {
if (!result.isEmpty() && !result.containsKey(GROUP_ID) && app.name.isPresent()) {
result.put(GROUP_ID, app.name.get());
}

Expand Down

0 comments on commit 17b8ce6

Please sign in to comment.