mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #70311 from juanvallejo/jvallejo/fix-continueonerror-visitor
fix ContinueOnError visitor
This commit is contained in:
commit
d0a10f0ca9
@ -1089,9 +1089,10 @@ func (b *Builder) Do() *Result {
|
|||||||
if b.requireObject {
|
if b.requireObject {
|
||||||
helpers = append(helpers, RetrieveLazy)
|
helpers = append(helpers, RetrieveLazy)
|
||||||
}
|
}
|
||||||
r.visitor = NewDecoratedVisitor(r.visitor, helpers...)
|
|
||||||
if b.continueOnError {
|
if b.continueOnError {
|
||||||
r.visitor = ContinueOnErrorVisitor{r.visitor}
|
r.visitor = NewDecoratedVisitor(ContinueOnErrorVisitor{r.visitor}, helpers...)
|
||||||
|
} else {
|
||||||
|
r.visitor = NewDecoratedVisitor(r.visitor, helpers...)
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user