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

This commit is contained in:
wanyaoqi
2026-01-29 10:34:05 +08:00
committed by GitHub
parent a2f631d749
commit 1e62546d2f
+5
View File
@@ -383,6 +383,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
}