mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
fix ContinueOnError visitor
This commit is contained in:
@@ -1089,9 +1089,10 @@ func (b *Builder) Do() *Result {
|
||||
if b.requireObject {
|
||||
helpers = append(helpers, RetrieveLazy)
|
||||
}
|
||||
r.visitor = NewDecoratedVisitor(r.visitor, helpers...)
|
||||
if b.continueOnError {
|
||||
r.visitor = ContinueOnErrorVisitor{r.visitor}
|
||||
r.visitor = NewDecoratedVisitor(ContinueOnErrorVisitor{r.visitor}, helpers...)
|
||||
} else {
|
||||
r.visitor = NewDecoratedVisitor(r.visitor, helpers...)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
Reference in New Issue
Block a user