mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix(region): have agent add check is telegraf deployed (#24148)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user