mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
fix ContinueOnError visitor
This commit is contained in:
parent
1355e6b277
commit
4d753d4a59
@ -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