Skip to content

Commit

Permalink
Merge pull request #4178 from hashicorp/f-sort-drivers
Browse files Browse the repository at this point in the history
cli: sort drivers in `node status <node_id>`
  • Loading branch information
schmichael authored Apr 20, 2018
2 parents 9b2a73e + 91cd1a2 commit 443c1f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions command/node_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ func (c *NodeStatusCommand) outputTruncatedNodeDriverInfo(node *api.Node) string
drivers = append(drivers, driverName)
}
}
sort.Strings(drivers)
return strings.Trim(strings.Join(drivers, ","), ", ")
}

Expand Down

0 comments on commit 443c1f3

Please sign in to comment.