mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
fix kubectl config return 0 on error
This commit is contained in:
@@ -160,7 +160,7 @@ func TestCreateAuthInfoOptions(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
|
||||
if !opts.complete(cmd, buff) {
|
||||
if err := opts.complete(cmd, buff); err != nil {
|
||||
if !test.wantCompleteErr {
|
||||
t.Errorf("case %d: complete() error for flags %q: %s", i, test.flags, buff)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user