Skip to content

Commit

Permalink
Support show value
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjunjie64 committed Jun 1, 2023
1 parent 91403e9 commit 6e4108c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private LocalDataQueryResultRow buildDataItem(final ReadwriteSplittingDataSource
String name = dataSourceRuleConfig.getName();
Map<String, String> exportDataSources = null == dataSourceRuleConfig.getDynamicStrategy() ? exportableDataSourceMap.get(name) : exportableAutoAwareDataSource.get(name);
Optional<AlgorithmConfiguration> loadBalancer = Optional.ofNullable(loadBalancers.get(dataSourceRuleConfig.getLoadBalancerName()));
return new LocalDataQueryResultRow(name, status,
return new LocalDataQueryResultRow(name, status ? "ENABLE" : "DISABLE",
getWriteDataSourceName(dataSourceRuleConfig, exportDataSources),
getReadDataSourceNames(dataSourceRuleConfig, exportDataSources),
loadBalancer.map(AlgorithmConfiguration::getType).orElse(""),
Expand Down

0 comments on commit 6e4108c

Please sign in to comment.