[ Agent ] [ init ] - ifx init process to use status module

This commit is contained in:
zeaslity
2024-01-18 16:45:13 +08:00
parent 86b6484194
commit 2b3dd8a4d8
3 changed files with 1318 additions and 33 deletions

View File

@@ -227,14 +227,14 @@ func UniformAgentServerInfo(agentServerInfo *register.AgentServerInfo) {
func BuildAgentOsOperator(agentServerInfo *register.AgentServerInfo) {
// 2023年8月4日 passthrough some key information
// 2023年8月4日 pass through some key information
ossOfflinePrefix := g.G.AgentConfig.GetString("octopus.agent.executor.ossOfflinePrefix")
if !strings.HasSuffix(ossOfflinePrefix, "/") {
ossOfflinePrefix += "/"
}
// call the init exec function
agentOsOperator := executor.BuildAgentOsOperator(agentServerInfo.OSInfo, ossOfflinePrefix)
agentOsOperator := executor.BuildAgentOsOperator(ossOfflinePrefix)
// assign the agentServerInfo
agentOsOperator.AgentServerInfo = agentServerInfo