Skip to content

Commit 2ab0e74

Browse files
authored
Fix inadvertent short-circuiting bare metal plan output (#416)
1 parent 91b6c96 commit 2ab0e74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/plans/plans.go

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func NewCmdPlan(base *cli.Base) *cobra.Command {
121121
return nil
122122
},
123123
}
124+
124125
metal.Flags().StringP("cursor", "c", "", "(optional) Cursor for paging.")
125126
metal.Flags().IntP(
126127
"per-page",

cmd/plans/printer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (m *MetalPlansPrinter) Columns() [][]string {
113113
func (m *MetalPlansPrinter) Data() [][]string {
114114
data := [][]string{}
115115

116-
if len(data) == 0 {
116+
if len(m.Plans) == 0 {
117117
data = append(data, []string{"---", "---", "---", "---", "---", "---", "---", "---", "---", "---", "---"})
118118
return data
119119
}

0 commit comments

Comments
 (0)