Skip to content

Commit

Permalink
Fix inadvertent short-circuiting bare metal plan output (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper authored Feb 27, 2024
1 parent 91b6c96 commit 2ab0e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/plans/plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func NewCmdPlan(base *cli.Base) *cobra.Command {
return nil
},
}

metal.Flags().StringP("cursor", "c", "", "(optional) Cursor for paging.")
metal.Flags().IntP(
"per-page",
Expand Down
2 changes: 1 addition & 1 deletion cmd/plans/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (m *MetalPlansPrinter) Columns() [][]string {
func (m *MetalPlansPrinter) Data() [][]string {
data := [][]string{}

if len(data) == 0 {
if len(m.Plans) == 0 {
data = append(data, []string{"---", "---", "---", "---", "---", "---", "---", "---", "---", "---", "---"})
return data
}
Expand Down

0 comments on commit 2ab0e74

Please sign in to comment.