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

This commit is contained in:
wanyaoqi
2026-01-29 10:34:48 +08:00
committed by GitHub
parent 2fa3f391f6
commit b968f9a05f
+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
}