fix(region): have agent add check is telegraf deployed (#24145)

This commit is contained in:
wanyaoqi
2026-01-29 10:34:13 +08:00
committed by GitHub
parent 86ffcde03a
commit cd755ba02b
+5
View File
@@ -384,6 +384,11 @@ func (guest *SGuest) PerformHaveAgent(ctx context.Context, userCred mcclient.Tok
output.Have = true
return output, nil
}
v = guest.GetMetadata(ctx, "telegraf_deployed", userCred)
if v == "true" {
output.Have = true
return output, nil
}
return output, nil
}