From 17eb416df70924d8fe5716e254139eb88cdfbbbe Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Fri, 16 Nov 2018 10:37:39 -0500 Subject: [PATCH] tweak whitespace in device stats output --- command/alloc_status.go | 1 + command/helper_stats.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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