diff --git a/command/alloc_status.go b/command/alloc_status.go index 181f8ad24..1cccd29e8 100644 --- a/command/alloc_status.go +++ b/command/alloc_status.go @@ -606,6 +606,7 @@ func (c *AllocStatusCommand) outputVerboseResourceUsage(task string, resourceUsa } if len(deviceStats) > 0 { + c.Ui.Output("") c.Ui.Output("Device Stats") printDeviceStats(c.Ui, deviceStats) diff --git a/command/helper_stats.go b/command/helper_stats.go index 4ffac8ddd..489982b5e 100644 --- a/command/helper_stats.go +++ b/command/helper_stats.go @@ -84,7 +84,7 @@ func printDeviceStats(ui cli.Ui, deviceGroupStats []*api.DeviceGroupStats) { for _, dg := range deviceGroupStats { for id, dinst := range dg.InstanceStats { if !isFirst { - ui.Output("\n") + ui.Output("") } isFirst = false