From 91cd1a22580ac03314ef2b28e7ade5cfd05732ac Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Wed, 18 Apr 2018 14:30:44 -0700 Subject: [PATCH] cli: sort drivers in `node status ` --- command/node_status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/node_status.go b/command/node_status.go index 26e201dccc3..ae4b8ab81e6 100644 --- a/command/node_status.go +++ b/command/node_status.go @@ -406,6 +406,7 @@ func (c *NodeStatusCommand) outputTruncatedNodeDriverInfo(node *api.Node) string drivers = append(drivers, driverName) } } + sort.Strings(drivers) return strings.Trim(strings.Join(drivers, ","), ", ") }