fix kubectl set subject --all option invalid bug

This commit is contained in:
WanLinghao
2018-05-23 14:47:34 +08:00
parent b5cd7d81bd
commit ddbd9d20cb
2 changed files with 15 additions and 1 deletions

View File

@@ -262,7 +262,9 @@ func (o *SubjectOptions) Run(fn updateSubjects) error {
continue
}
return o.PrintObj(actual, o.Out)
if err := o.PrintObj(actual, o.Out); err != nil {
allErrs = append(allErrs, err)
}
}
return utilerrors.NewAggregate(allErrs)
}