mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Did not print 'No resources found.' if error.
This commit is contained in:
parent
c19569f03f
commit
930cd155ad
@ -323,7 +323,7 @@ func RunGet(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args [
|
|||||||
}
|
}
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
}
|
}
|
||||||
if len(infos) == 0 {
|
if len(infos) == 0 && len(errs) == 0 {
|
||||||
outputEmptyListWarning(errOut)
|
outputEmptyListWarning(errOut)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ func RunGet(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args [
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
allErrs = append(allErrs, err)
|
allErrs = append(allErrs, err)
|
||||||
}
|
}
|
||||||
if len(infos) == 0 {
|
if len(infos) == 0 && len(allErrs) == 0 {
|
||||||
outputEmptyListWarning(errOut)
|
outputEmptyListWarning(errOut)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user