Skip to content

Commit

Permalink
Merge pull request #8162 from hashicorp/b-gh-8161
Browse files Browse the repository at this point in the history
cli: fix malformed alloc status address list when more than 1 addr
  • Loading branch information
jrasell authored Jun 16, 2020
2 parents de359b5 + c74c84f commit cc83d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/alloc_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit cc83d19

Please sign in to comment.