fix: Wait for ticker when get status is wrong

This commit is contained in:
rainzm
2020-05-29 19:56:45 +08:00
parent 232077b09b
commit 7e80ecf61b

View File

@@ -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())