Skip to content

Commit

Permalink
fix apache#6532, set config center group when registry group is not n…
Browse files Browse the repository at this point in the history
…ull. (apache#6669)
  • Loading branch information
chickenlj authored Aug 31, 2020
1 parent 4a29f05 commit 12c18f6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,9 @@ private ConfigCenterConfig registryAsConfigCenter(RegistryConfig registryConfig)
cc.getParameters().put(CLIENT_KEY, registryConfig.getClient());
cc.setProtocol(protocol);
cc.setPort(port);
cc.setGroup(registryConfig.getGroup());
if (StringUtils.isNotEmpty(registryConfig.getGroup())) {
cc.setGroup(registryConfig.getGroup());
}
cc.setAddress(getRegistryCompatibleAddress(registryConfig));
cc.setNamespace(registryConfig.getGroup());
cc.setUsername(registryConfig.getUsername());
Expand Down

0 comments on commit 12c18f6

Please sign in to comment.