diff --git a/command/node_status.go b/command/node_status.go index e07bb47e8..934ef2f97 100644 --- a/command/node_status.go +++ b/command/node_status.go @@ -530,6 +530,9 @@ func (c *NodeStatusCommand) formatAttributes(node *api.Node) { } func (c *NodeStatusCommand) formatDeviceAttributes(node *api.Node) { + if node.NodeResources == nil { + return + } devices := node.NodeResources.Devices if len(devices) == 0 { return