[Agent][Deploy] - sz ga
This commit is contained in:
@@ -308,10 +308,15 @@ func uniformAgentServerName(agentInfo *a_status.AgentInfo, agentServerInfo *a_ag
|
||||
|
||||
// 不是标准的AgentName格式
|
||||
city := agentServerInfo.City
|
||||
city = strings.Title(city)
|
||||
if strings.Contains(city, " ") {
|
||||
city = strings.Join(strings.Split(city, " "), "")
|
||||
if city == "" {
|
||||
city = "Local"
|
||||
} else {
|
||||
city = strings.Title(city)
|
||||
if strings.Contains(city, " ") {
|
||||
city = strings.Join(strings.Split(city, " "), "")
|
||||
}
|
||||
}
|
||||
|
||||
// uniform city format
|
||||
agentServerInfo.City = city
|
||||
|
||||
|
||||
Reference in New Issue
Block a user