mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
correctly initialize array length
This commit is contained in:
@@ -393,7 +393,7 @@ func (c *NodeStatusCommand) formatNode(client *api.Client, node *api.Node) int {
|
||||
}
|
||||
|
||||
func (c *NodeStatusCommand) outputTruncatedNodeDriverInfo(node *api.Node) string {
|
||||
drivers := make([]string, 1)
|
||||
drivers := make([]string, 0, len(node.Drivers))
|
||||
|
||||
for driverName, driverInfo := range node.Drivers {
|
||||
if !driverInfo.Healthy {
|
||||
|
||||
Reference in New Issue
Block a user