Skip to content

Commit

Permalink
bug:根据Profile获取集群名称优化 TencentBlueKing#11137
Browse files Browse the repository at this point in the history
  • Loading branch information
carlyin0801 committed Oct 28, 2024
1 parent 4cbdf6c commit e0c7ed2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ object CommonUtils {
private fun getProdDbClusterName(profile: Profile): String {
// 从配置文件获取db集群名称列表
val dbClusterNames = (SpringContextUtil.getValue("bk.db.clusterNames") ?: PROFILE_PRODUCTION).split(",")
val activeProfiles = profile.getActiveProfiles()
val activeProfiles = profile.getActiveProfiles().toMutableList()
activeProfiles.remove(PROFILE_PRODUCTION)
var finalDbClusterName = PROFILE_PRODUCTION
run breaking@{
// 获取当前服务器集群对应的db集群名称
Expand Down

0 comments on commit e0c7ed2

Please sign in to comment.