[ Cmii ] [ Octopus ] - reformat agent-go - 3
This commit is contained in:
@@ -340,7 +340,7 @@ func buildAgentOsOperator(agentInfo *a_status.AgentInfo, agentServerInfo *a_agen
|
||||
// 2023年8月4日 pass through some key information
|
||||
ossOfflinePrefix := "http://bastion.io"
|
||||
if a_agent.AgentConfig != nil {
|
||||
ossOfflinePrefix := a_agent.AgentConfig.GetString("octopus.agent.executor.ossOfflinePrefix")
|
||||
ossOfflinePrefix = a_agent.AgentConfig.GetString("octopus.agent.executor.ossOfflinePrefix")
|
||||
if !strings.HasSuffix(ossOfflinePrefix, "/") {
|
||||
ossOfflinePrefix += "/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user