Merge pull request #4117 from hashicorp/r-node-status-refactor
Correctly initialize array length
This commit is contained in:
commit
bd3132bd6d
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue