mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
cli: fix malformed alloc status address list when more than 1 addr
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user