mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): check qga is init on check qga runing (#21308)
This commit is contained in:
@@ -493,6 +493,10 @@ func (m *SGuestManager) GetQgaRunningGuests() []string {
|
||||
return true
|
||||
}
|
||||
|
||||
if guest.guestAgent == nil {
|
||||
// in case guestAgent not init
|
||||
return true
|
||||
}
|
||||
if guest.guestAgent.TryLock() {
|
||||
defer guest.guestAgent.Unlock()
|
||||
err := guest.guestAgent.GuestPing(1)
|
||||
|
||||
Reference in New Issue
Block a user