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