Skip to content

Commit

Permalink
fix: Fix the bug of invalid scopeModel in ConfigCenterConfig (apache#…
Browse files Browse the repository at this point in the history
…9071)

update the returned URL instance in ConfigCenterConfig#toUrl

see issue: apache#9070
  • Loading branch information
pinxiong authored Oct 21, 2021
1 parent 7abea87 commit 49089a6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ public URL toUrl() {
if (StringUtils.isEmpty(map.get(PROTOCOL_KEY))) {
map.put(PROTOCOL_KEY, ZOOKEEPER_PROTOCOL);
}
URL url = UrlUtils.parseURL(address, map);
url.setScopeModel(getScopeModel());
return url;
return UrlUtils.parseURL(address, map).setScopeModel(getScopeModel());
}

public boolean checkOrUpdateInitialized(boolean update) {
Expand Down

0 comments on commit 49089a6

Please sign in to comment.