cli: fix malformed alloc status address list when more than 1 addr

This commit is contained in:
James Rasell
2020-06-15 14:35:47 +02:00
parent 723437f87e
commit c74c84f2c5

View File

@@ -580,7 +580,7 @@ func (c *AllocStatusCommand) outputTaskResources(alloc *api.Allocation, task str
humanize.IBytes(uint64(*alloc.Resources.DiskMB*bytesPerMegabyte)),
firstAddr))
for i := 1; i < len(addr); i++ {
resourcesOutput = append(resourcesOutput, fmt.Sprintf("||||%v", addr[i]))
resourcesOutput = append(resourcesOutput, fmt.Sprintf("|||%v", addr[i]))
}
c.Ui.Output(formatListWithSpaces(resourcesOutput))