mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 22:20:18 +00:00
catch 202 early
This commit is contained in:
@@ -166,6 +166,14 @@ func (r *Request) Do() Result {
|
||||
return Result{err: err}
|
||||
}
|
||||
respBody, err := r.c.doRequest(req)
|
||||
if err != nil {
|
||||
if statusErr, ok := err.(*StatusErr); ok {
|
||||
// TODO: using the information in statusErr,
|
||||
// loop querying the server to wait and retrieve
|
||||
// the actual result.
|
||||
_ = statusErr
|
||||
}
|
||||
}
|
||||
return Result{respBody, err}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user