Add more details (Retries) to resource.NotFoundError
This commit is contained in:
parent
570af34f0f
commit
be4e5e53a9
|
@ -111,6 +111,7 @@ func (conf *StateChangeConf) WaitForState() (interface{}, error) {
|
||||||
if notfoundTick > conf.NotFoundChecks {
|
if notfoundTick > conf.NotFoundChecks {
|
||||||
result.Error = &NotFoundError{
|
result.Error = &NotFoundError{
|
||||||
LastError: err,
|
LastError: err,
|
||||||
|
Retries: notfoundTick,
|
||||||
}
|
}
|
||||||
lastResult.Store(result)
|
lastResult.Store(result)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue