[ Agent ] [ init ] - fix init bugs
This commit is contained in:
@@ -39,7 +39,7 @@ func detectByAgentStatusInfo(os *AgentOsOperator) {
|
||||
bytes, _ := json.Marshal(agentInfo)
|
||||
log.DebugF("[detectByAgentStatusInfo] - agent info is => %s", string(bytes))
|
||||
|
||||
if strings.Contains(agentInfo.HostInfo.PlatformFamily, "centos") {
|
||||
if strings.Contains(agentInfo.HostInfo.Platform, "openeuler") || strings.Contains(agentInfo.HostInfo.PlatformFamily, "platformFamily") {
|
||||
// centos
|
||||
os.IsOsTypeUbuntu = false
|
||||
os.IsOsTypeCentOS = true
|
||||
|
||||
1056
agent-go/tmp/test-centos-agent-info.json
Normal file
1056
agent-go/tmp/test-centos-agent-info.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user