mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix: Wait for ticker when get status is wrong
This commit is contained in:
@@ -586,6 +586,7 @@ func (asc *SASController) checkAllServer(session *mcclient.ClientSession, guestI
|
||||
ret, e := modules.Servers.GetSpecific(session, id, "status", nil)
|
||||
if e != nil {
|
||||
log.Errorf("Servers.GetSpecific failed: %s", e)
|
||||
<-ticker.C
|
||||
continue
|
||||
}
|
||||
log.Debugf("ret from GetSpecific: %s", ret.String())
|
||||
|
||||
Reference in New Issue
Block a user