remove check for multiple resource types

This commit is contained in:
juanvallejo 2017-01-18 13:26:03 -05:00
parent 430283b973
commit 713df3d74e
No known key found for this signature in database
GPG Key ID: 7D2C958002D6448D

View File

@ -189,7 +189,7 @@ func RunGet(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args [
// always show resources when getting by name or filename, or if the output
// is machine-consumable, or if multiple resource kinds were requested.
if len(options.Filenames) > 0 || argsHasNames || cmdutil.OutputsRawFormat(cmd) || resource.MultipleTypesRequested(args) {
if len(options.Filenames) > 0 || argsHasNames || cmdutil.OutputsRawFormat(cmd) {
if !cmd.Flag("show-all").Changed {
cmd.Flag("show-all").Value.Set("true")
}