Merge pull request #6919 from VilledeMontreal/fix/listReturnError

v3: helm list no longer reporting cluster not reachable
pull/7066/head
Matt Farina 5 years ago committed by GitHub
commit 95b2e788e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -77,12 +77,15 @@ func newListCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
client.SetStateMask()
results, err := client.Run()
if err != nil {
return err
}
if client.Short {
for _, res := range results {
fmt.Fprintln(out, res.Name)
}
return err
return nil
}
return outfmt.Write(out, newReleaseListWriter(results))

Loading…
Cancel
Save