From d3ee039422a6238db9aaa2dccf624267d2f50c64 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 6 Mar 2017 12:53:24 -0800 Subject: [PATCH] Display Disk resources on CLI Fixes https://github.com/hashicorp/nomad/issues/2401 --- command/alloc_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/alloc_status.go b/command/alloc_status.go index aaf1f0dbd0d..01f9e790936 100644 --- a/command/alloc_status.go +++ b/command/alloc_status.go @@ -427,7 +427,7 @@ func (c *AllocStatusCommand) outputTaskResources(alloc *api.Allocation, task str resourcesOutput = append(resourcesOutput, fmt.Sprintf("%v MHz|%v|%v|%v|%v", cpuUsage, memUsage, - humanize.IBytes(uint64(*resource.DiskMB*bytesPerMegabyte)), + humanize.IBytes(uint64(*alloc.Resources.DiskMB*bytesPerMegabyte)), *resource.IOPS, firstAddr)) for i := 1; i < len(addr); i++ {